If I do Math.Round(95.55555555,2)
in VB.NET, the result is 95.56
, but I want it the result the be 95.55
. Is there a way to do this in VB.NET? I guess I just want to keep the decimal places, but not round them
Looks like Math.Truncate(95.5555555 * 100) / 100
.
See Truncate Decimal number not Round Off
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With