1
Vote

Compile Error System.Math.Floor ambiguous

description

Add the Class to a new library in VS2013 Target .Net Framework 4.5.1

Error 1 The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' C:\Users\Nick\Documents\Visual Studio 2013\Projects\QRCode\QRCode\QRCodeCS.cs 359 56 QRCode
Error 2 The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' C:\Users\Nick\Documents\Visual Studio 2013\Projects\QRCode\QRCode\QRCodeCS.cs 359 76 QRCode
Error 3 The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' C:\Users\Nick\Documents\Visual Studio 2013\Projects\QRCode\QRCode\QRCodeCS.cs 817 37 QRCode
Error 4 The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' C:\Users\Nick\Documents\Visual Studio 2013\Projects\QRCode\QRCode\QRCodeCS.cs 823 73 QRCode
Error 5 The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' C:\Users\Nick\Documents\Visual Studio 2013\Projects\QRCode\QRCode\QRCodeCS.cs 1176 44 QRCode
Error 6 The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' C:\Users\Nick\Documents\Visual Studio 2013\Projects\QRCode\QRCode\QRCodeCS.cs 1196 33 QRCode

comments

youbl wrote Jan 6, 2015 at 6:08 AM

this error is easy, change your code like Math.Floor(i / 2d).

but when i show my qr code bitmap, my phone can't read it ,how to resolve this question???