
-----------------------------------
Luffy123
Wed May 23, 2012 10:16 pm

How to show only 2 decimals?
-----------------------------------
Say I have a number

12.99728313

How do I make it show only 12.99

or 

12.997

or just 12.9?

-----------------------------------
Dreadnought
Wed May 23, 2012 10:42 pm

Re: How to show only 2 decimals?
-----------------------------------
Read the documentation for [tdoc]put[/tdoc]. Specifically, look at the use of : to format real numbers.

If you wish to convert the number to a string, you can read up about [tdoc]frealstr[/tdoc] and [tdoc]erealstr[/tdoc]
