Good morning all,
I am trying to put a calculated number into a number field, rounding it to 3 decimal places as I do this. The numbers and rounding are calculating correctly, but the problem is that the numbers aren’t showing 3 decimal places if only two exist, i.e.:
a number is calculated to be 10.47, for argument’s sake. I want it to show 10.470 in the document, so everything lines up.
How can I do this? The decimal places are fixed in the field settings, to 3, and I’m rounding to 3, but if there are only 1 or 2 decimal places, the extra zero(s) I need aren’t there.
Any suggestions?
Many thanks,
MaryJane Johnson.
Subject: Works fine here
Setting the field’s formatting properties has always worked fine for me; you must be overlooking something simple.
Subject: RE: Works fine here
Thank you Bruce.
I’ve been double-checking the field properties… this is what I hate most about inherited code, things that got missed first time around, then you have to go through every single field - and there are over 600 on this form! - and check to how many decimal places each is set.
Seems the problem is indeed in there, with the occasional - and of course immediately noticed - field having the wrong number of decimal places.
Thanks again for your responses, but mucked-up field properties was the culprit - sorry for wasting your time, I feel awful about that!
Many thanks,
MaryJane Johnson.
Subject: Decimal places entered v. displayed
For anyone researching, if you set the number to display as entered (rather than specifying the number of decimal places), Notes will drop zeroes to the right of the decimal point.