DataType:float
From MacroQuest Wiki
[edit]
Description
- A floating-point number is one which has a decimal component (e.g. 1.01)
- Members of this DataType generally manipulate the number's precision (i.e. how many decimal places)
- They all round correctly with the exception of int
[edit]
Members
| Type | Member | Description |
| string | Deci | The number as a string with one place of precision, i.e. ###.# |
| string | Centi | The number as a string with two places of precision, i.e. ###.## |
| string | Milli | The number as a string with three places of precision, i.e. ###.### |
| int | Int | Integer portion of the number truncated rather than rounded, e.g. 12.779 returns 12 |
| string | Precision[#] | The number as a string with # places of precision |
| string | To String | Same as Centi |
[edit]
