Home

FloatHolder

Holds a float

Implements: Compare

Operations

New

Default constructor

New()

Copy constructor

New(value:Float)
Parameters
NameTypeDescription
valueFloatfloat value

Add

Adds to value

method : public : Add(value:Float) ~ Nil
Parameters
NameTypeDescription
valueFloatvalue to add to

Compare

Compares two objects

method : public : native : Compare(rhs:Compare) ~ Int
Parameters
NameTypeDescription
rhsComparecompare object

Return
TypeDescription
Int0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater

Div

Divide by value

method : public : Div(value:Float) ~ Nil
Parameters
NameTypeDescription
valueFloatvalue to divide by

Get

Get value

method : public : Get() ~ Float
Return
TypeDescription
Floatvalue

HashID

Returns a unique hash ID for a float

method : public : HashID() ~ Int
Return
TypeDescription
Inthash ID

Mul

Multiply to value

method : public : Mul(value:Float) ~ Nil
Parameters
NameTypeDescription
valueFloatvalue to multiply by

Set

Set value

method : public : Set(value:Float) ~ Nil
Parameters
NameTypeDescription
valueFloatfloat value

Sub

Subtract from value

method : public : Sub(value:Float) ~ Nil
Parameters
NameTypeDescription
valueFloatvalue to subtract by