Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15244

Rounding a 4 decimal place number to 2 decimal places

$
0
0
I have the following problem:

I have a 4 decimal place number e.g. 14.5548 that I want rounded up correctly to 2 decimal places. So the correct rounded number in this example should be 14.56

Using format(amt, "0.00") produces 14.55
Using round(amt,2) produces 14.55

The following code produces the correct answer of 14.56 but is this how to do it or am I missing something?

round(round(amt,3),2)

Thanks for any advice.

Viewing all articles
Browse latest Browse all 15244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>