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

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 15484

Latest Images

Trending Articles


Practice Sheet of Pronoun References for HSC Students


Download: Alice Chuma – Okondewa


Neem Baba Extra Questions Answer Class 6 English Poorvi


CalCen


Muloraki Au


Mahakal Attitude Status


Love (2015).H264.Italian.English.Ac3.5.1.multisub.iCV-MIRCrew Seed (62)/Leech...


MUSIC STATION – 2017.09.01


Waves Complete v2019.02.14 Incl Emulator-R2R


Students hit streets to save Agriculture College land in city



Latest Images

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