Hello. I am having trouble with rounding. If after several
caluclations, Xval = .29859932, the value rounds to just .3.
I tried:
Xval = round(Xval,4)
So that I could obtain ".2986", but it wants to round to just .3.
Can I preserve Xval without any rounding for later use in the
program? Even it if were .298989898, I would prefer it show
.29899 at the worst. Not just .3.
Am I using ROUND wrong?
Thank you.
Robert
------------------
caluclations, Xval = .29859932, the value rounds to just .3.
I tried:
Xval = round(Xval,4)
So that I could obtain ".2986", but it wants to round to just .3.
Can I preserve Xval without any rounding for later use in the
program? Even it if were .298989898, I would prefer it show
.29899 at the worst. Not just .3.
Am I using ROUND wrong?
Thank you.
Robert
------------------
Comment