Converting decimal 39.995 to 39.99 and not rounding up to 40.

Can anyone show me a good solution for this? I have a decimal of 39.995, for example and I want to not Round, per se, but limit the precision to 2 decimal places without rounding to 40. I need 39.99.

by moss_in_it via /r/csharp

Leave a Reply