This shows you the differences between two versions of the page.
en:decimal [2016/08/12 12:18] admin |
en:decimal [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Decimal ===== | ||
- | ==== Format ==== | ||
- | |||
- | **decimal** ( [[expressions|expression]] )\\ | ||
- | **decimal** [[expressions|expression]] | ||
- | |||
- | ==== Description ==== | ||
- | |||
- | Defines the maximum number of decimal places (0-15) 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/ | ||
- | will print | ||
- | < | ||
- | 0.666667 | ||
- | 0.6666666667 | ||
- | 0.666666666666667 | ||
- | </ | ||
- | |||
- | ==== See Also ==== | ||
- | [[print|Print]], | ||
- | |||
- | ==== New To Version ==== | ||
- | 0.9.6w |