Math Errors RRS feed

  • Question

  • User1004400421 posted

    im getting the following errors when trying to execute, build, navigate TT

    1. Error 2 The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)'  

    2. Error 1 (0): error CS0121: The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' / 

    Its not telling me what file or line.

    Thanks for any help

    WinXP Pro

    SQL Server 2000

    Beta 2 just installed.. No other versions...


    Thursday, April 28, 2005 2:42 PM

All replies

  • User1004400421 posted
    Forget this.. Figured out what was happening!
    Thursday, April 28, 2005 3:15 PM
  • User-463169909 posted

    I had the same problem. It's caused by a new function in mscorlib.dll that now handles decimals so if you are calling Math.Floor, .NET wants to know if your object is a decimal or a double. Cactus over at uber gives us the syntax:


    Wednesday, October 12, 2005 11:04 AM
  • User-539358635 posted

    I too have the same problem.

    I find out it's happening in BarGrapg.cs in Business Object.

    pls provide solution.

    Thursday, March 9, 2006 5:55 AM
  • User555306248 posted
    Have you solved the error yet ?
    Monday, April 30, 2007 12:21 AM
  • User-897878431 posted

    I have solved this issue by doing a search through all files for 'Math.Floor' .

    Math.Floor needs to know if the agument it is being passed is a decimal or double.

    So the answer is to cast the agument to a decimal or a double. Here is an example:

    double expTick = Convert.ToDouble(Math.Floor((double)Math.Log10(_yTickValue)));

    I did this and everytihing now works...


    Peter Mead,


    Sunday, June 10, 2007 2:58 AM
  • User555306248 posted

    Thats nice Peter [:)]

    Sunday, June 10, 2007 11:32 PM