Number formats

admin

Administrator
Staff member
How do I specify retaining decimal placement in a number? For example, if I multiply 24.6 * 10, I want to end up with 246.00, not 246. I never know if the resulting answer will be a whole number as above, or will contain decimal places (24.6 x 11.5 = 282.90, NOT 282.9).

I always need two decimal places in the answer, even if they're zeros, because I have to convert to answer to a string and then substring the separate integers into different places on a form.
 
Back
Top