Holds a float
Implements: Compare, Clone, Stringify, Primitive
OperationsDefault constructor
New()
Copy constructor
New(value:Float)
Name | Type | Description |
---|---|---|
value | Float | float value |
Adds to value
method : public : Add(value:Float) ~ Nil
Name | Type | Description |
---|---|---|
value | Float | value to add to |
Clones the object instance
method : public : Clone() ~ System.FloatRef
Type | Description |
---|---|
FloatRef | cloned the object instance |
Compares two objects
method : public : native : Compare(rhs:System.Compare) ~ Int
Name | Type | Description |
---|---|---|
rhs | Compare | compare object |
Type | Description |
---|---|
Int | 0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater |
Divide by value
method : public : Div(value:Float) ~ Nil
Name | Type | Description |
---|---|---|
value | Float | value to divide by |
Creates an array of references from primitives
function : FromArray(input:Float[]) ~ FloatRef[]
Name | Type | Description |
---|---|---|
input | Float[] | array of primitives |
Type | Description |
---|---|
FloatRef[] | an array of references |
Get value
method : public : Get() ~ Float
Type | Description |
---|---|
Float | value |
Returns a unique hash ID for a float
method : public : HashID() ~ Int
Type | Description |
---|---|
Int | hash ID |
Multiply to value
method : public : Mul(value:Float) ~ Nil
Name | Type | Description |
---|---|---|
value | Float | value to multiply by |
Set value
method : public : Set(value:Float) ~ Nil
Name | Type | Description |
---|---|---|
value | Float | float value |
Subtract from value
method : public : Sub(value:Float) ~ Nil
Name | Type | Description |
---|---|---|
value | Float | value to subtract by |
Creates an array of primitives from references
function : ToArray(input:FloatRef[]) ~ Float[]
Name | Type | Description |
---|---|---|
input | FloatRef[] | array of references |
Type | Description |
---|---|
Float[] | an array of primitives |