Fable icon indicating copy to clipboard operation
Fable copied to clipboard

Add warning for unsupported MidpointRounding when using Math.Round

Open michael-tugby opened this issue 4 months ago • 1 comments

When using Math.Round(value, MidpointRounding.AwayFromZero), the enum actually gets read as its int equivalent, 1. This caused a bug in our rounding. There should probably be some sort of log in the console informing us that MidpointRounding is unsupported.

michael-tugby avatar Aug 04 '26 13:08 michael-tugby