Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: YingwaiOriginally posted by: ejones
As you are looking at these double values you are actually seeing a string representation of them. Internally they are stored in a binary form that itself is not consistent about the number of digits to the right of the decimal from one number to the next.
So, in other words your question is about taking control over the way the numbers converted to string for reporting purposes. For this you can use the BRAINscript format() function. In your example, if the double field is named num you can get the string representation of that number formatted with 3 digits to the right of the decimal by using:
format("%.03f",num)
Thanks so much for your quick reply ejones! Going to try it right away.