Bundle Core runtime library providing primitive types (Bool, Byte, Char, Int, Float, String), base collections, and system utilities. Every Objeck program links against this bundle automatically via lang.obl.
FloatRef
Holds a float
Operations
Add #
Adds to value
method : public : Add(value:Float) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| value | Float | value to add to |
Clone #
Clones the object instance
method : public : Clone() ~ System.FloatRefReturn
| Type | Description |
|---|---|
| FloatRef | cloned the object instance |
Compare # native
Compares two objects
method : public : native : Compare(rhs:System.Compare) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| rhs | Compare | compare object |
Return
| Type | Description |
|---|---|
| Int | 0 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) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| value | Float | value to divide by |
FromArray # function
Creates an array of references from primitives
function : FromArray(input:Float[]) ~ FloatRef[]Parameters
| Name | Type | Description |
|---|---|---|
| input | Float | array of primitives |
Return
| Type | Description |
|---|---|
| FloatRef | an array of references |
HashID #
Returns a unique hash ID for a float
method : public : HashID() ~ IntReturn
| Type | Description |
|---|---|
| Int | hash ID |
Mul #
Multiply to value
method : public : Mul(value:Float) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| value | Float | value to multiply by |
Set #
Set value
method : public : Set(value:Float) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| value | Float | float value |