Decimal

Format

decimal ( expression )
decimal expression

Description

Defines the maximum number of decimal places (0-16) to convert when a floating point number is changed into a string. This does not change the internal precision of numeric calculations but only changes how they are displayed or stored as a string. By default a maximum of 6 decimal digits will display.

Example

print 2/3
decimal 10
print 2/3
decimal 15
print 2/3

will print

0.666667
0.6666666667
0.666666666666667

See Also

New To Version

0.9.6w

 
de/decimal.txt · Last modified: 2010/08/17 14:10 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki