Difference between revisions of "ObjectType:float"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
== Members == | == Members == | ||
− | * string '''Deci''': The value of this float, to the nearest tenth | + | * [[DataType:string|string]] '''Deci''': The value of this float, to the nearest tenth |
− | * string '''Centi''': The value of this float, to the nearest hundredth | + | * [[DataType:string|string]] '''Centi''': The value of this float, to the nearest hundredth |
− | * string '''Milli''': The value of this float, to the nearest thousandth | + | * [[DataType:string|string]] '''Milli''': The value of this float, to the nearest thousandth |
− | * int '''Int''': The value of this float, to | + | * [[DataType:int|int]] '''Int''': The value of this float, to its largest whole number (e.g. for 1.9 this is 1, for -0.1, this is -1) |
− | * string '''Precision['''#''']''': The value of this float, to the nearest # decimal places (e.g. 1 is tenths, 2 is hundredths, 3 is thousandths, and so on) | + | * [[DataType:string|string]] '''Precision['''#''']''': The value of this float, to the nearest # decimal places (e.g. 1 is tenths, 2 is hundredths, 3 is thousandths, and so on) |
+ | * [[DataType:int|int]] '''Ceil''': The value of this float, to its largest partial number (e.g. for 1.1 this is 2, for -0.1 this is 0). | ||
+ | * [[DataType:int|int]] '''Round''': The value of this float, rounded to the nearest whole number | ||
== Methods == | == Methods == |
Revision as of 21:58, 22 July 2005
Description
A float, named for its floating-point, represents a number with a mantissa.
Members
- string Deci: The value of this float, to the nearest tenth
- string Centi: The value of this float, to the nearest hundredth
- string Milli: The value of this float, to the nearest thousandth
- int Int: The value of this float, to its largest whole number (e.g. for 1.9 this is 1, for -0.1, this is -1)
- string Precision[#]: The value of this float, to the nearest # decimal places (e.g. 1 is tenths, 2 is hundredths, 3 is thousandths, and so on)
- int Ceil: The value of this float, to its largest partial number (e.g. for 1.1 this is 2, for -0.1 this is 0).
- int Round: The value of this float, rounded to the nearest whole number
Methods
- Inc: Increments this float by 1.0
- Inc[formula]: Increments this float by a given amount
- Dec: Decrements this float by 1.0
- Dec[formula]: Decrements this float by a given amount
- Set[formula]: Sets this float to a given value
Returns
The string representation of this float, to the nearest hundredth