Topic: 3 decimel places Posted: 06 Jan 2010 at 6:23am
CR 8.0
Currently on an engineering report the tolerence column has 2 decimal places (1.00). However, I need to increase this to 3 (1.000). How would I go about doing this?
Below is the current code used:
if {equip.cservice}= "Weigh Scale" or {equip.cservice} = "Weight Indicator Transmitter" then left(cstr({toldetail.nupptol}),len(Cstr({toldetail.nupptol}))-1) else Cstr({toldetail.nupptol})
Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Posted: 07 Jan 2010 at 8:54am
Is it just needed to display an extra zero? I see that the value displayed is a string. It kinda depends what you are trying to achieve. If the last digit is always going to be a zero, then you can add that to the end of the string.
If the data field is not large enough on the data source, then that would have to be done at the data source.
Otherwise maybe it could be converted back into a number and the number of digits to right of the decimal could be set.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum