Difference between revisions of "ObjectType:float"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
== Methods ==
 
== Methods ==
 
* '''Inc''': Increments this float by 1.0
 
* '''Inc''': Increments this float by 1.0
* '''Inc['''formula''']''': Increments this float by a given amount  
+
* '''Inc['''[[LavishScript:Mathematical Formulae|formula]]''']''': Increments this float by a given amount  
 
* '''Dec''': Decrements this float by 1.0
 
* '''Dec''': Decrements this float by 1.0
* '''Dec['''formula''']''': Decrements this float by a given amount
+
* '''Dec['''[[LavishScript:Mathematical Formulae|formula]]''']''': Decrements this float by a given amount
* '''Set['''formula''']''': Sets this float to a given value
+
* '''Set['''[[LavishScript:Mathematical Formulae|formula]]''']''': Sets this float to a given value
  
 
== Returns ==
 
== Returns ==

Revision as of 14:09, 19 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 the nearest whole number
  • 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)

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

Examples

See Also