[Mono-list] Bug in the scale of the result of decimal division

Marc Bettex bettex at epsitec.ch
Fri Feb 10 10:30:37 UTC 2012


Thanks for your answer.

In my application, I want to convert an amount in cents to the same amount
in dollars, and I know that the amount in cents is an integer, so I know
that the result should have at most two decimal places. Thus I truncate the
decimal places after the second one.

In my app, I'm ok with a workaround like that. But it still feels like a bit
ugly to me and I wanted to report this here so maybe someone can sometime
fix this issue if this is really an issue.

--
View this message in context: http://mono.1490590.n4.nabble.com/Bug-in-the-scale-of-the-result-of-decimal-division-tp4375794p4375841.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list