Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2017.2.X, 2017.3.X, 2018.1.X
Votes
0
Found in
2017.2.0f3
Issue ID
993302
Regression
No
System.Math.Round produces wrong result with .NET 3.5
To reproduce:
1. Open the project, attached by the tester ("SystemMathBug.zip")
2. Open the "scene" scene
3. Enter Play mode
4. Observe the console
Expected: the result of System.Math.Round(38.5d, 0, MidpointRounding.AwayFromZero) should be 39 as it is in the pure C#
Actual: System.Math.Round in Unity produces different results than in the pure C# application
Reproduced in 5.6.5f1, 2017.1.2p2, 2017.2.0f3, 2017.2.1p3, 2017.3.0p4, 2018.1.0b5
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment