Mono floating point mismatch

I pass this in the direct .NET window:

30f + 0.5f 

And get 30.5 as expected. In mono, I get 30 instead. What is the reason?

More details:

  • .NET: Visual Studio 2010 SP1
  • mono: Unity3D 3.5.6f4 with MonoDevelop 2.8.2
+7
source share
1 answer

Update your MonoDevelop to version 3.0.5

+1
source

All Articles