Math.Round() ambiguity problem
C#
4
Posts
2
Posters
1
Views
1
Watching
-
Math.Round(shortValue / intValue);
Error 1 The call is ambiguous between the following methods or properties: 'System.Math.Round(double)' and 'System.Math.Round(decimal)'
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
Math.Round( ( double )shortValue / ( double )intValue );
-
Math.Round( ( double )shortValue / ( double )intValue );
-
You're welcome. This is a basic type-relevant issue. Math cannot be taken for granted, so you probably want to heed Luc's advice if it affects your process.