Back

Number

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:158
src/main/java/bt7s7k7/treeburst/runtime/Realm.java:157
src/main/java/bt7s7k7/treeburst/runtime/Realm.java:223

Represents a real number.



Number.prototype.k_add

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:104

Overloads:

Adds two numbers together.


Number.prototype.k_bitAnd

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:117

Overloads:

Performs a bitwise AND over the two numbers, calculated using 32-bit signed integers.


Number.prototype.k_bitOr

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:118

Overloads:

Performs a bitwise OR over the two numbers, calculated using 32-bit signed integers.


Number.prototype.k_bitShl

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:119

Overloads:

Shifts the bits in the first number left by the value of the second number, calculated using 32-bit signed integers.


Number.prototype.k_bitShr

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:120

Overloads:

Shifts the bits in the first number right by the value of the second number, calculated using 32-bit signed integers.


Number.prototype.k_bitShrUnsigned

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:121

Overloads:

Shifts the bits in the first number right by the value of the second number, calculated using 32-bit unsigned integers.


Number.prototype.k_bitXor

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:116

Overloads:

Performs a bitwise XOR over the two numbers, calculated using 32-bit signed integers.


Number.prototype.k_div

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:107

Overloads:

Divides the first number by the second one.


Number.prototype.k_dump

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:242

Overloads:

Formats the number into a textual form.


Number.prototype.k_gt

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:112

Overloads:

Returns true if the first number is greater than the second.


Number.prototype.k_gte

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:113

Overloads:

Returns true if the first number is greater or equal to the second.


Number.prototype.k_lt

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:111

Overloads:

Returns true if the first number is less than the second.


Number.prototype.k_lte

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:114

Overloads:

Returns true if the first number is less or equal to the second.


Number.prototype.k_mod

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:108

Overloads:

Returns the remainder of the first number when divided by the second.


Number.prototype.k_mul

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:106

Overloads:

Multiplies two numbers together.


Number.prototype.k_neg

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:237

Overloads:

Returns a number with an inverted sign.


Number.prototype.k_pow

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:109

Overloads:

Puts the first number to the second's power.


Number.prototype.k_string

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:254

Overloads:

Formats the number into a textual form. If the radix parameter is provided, it is used as the base for representing the number value. In this case the number is converted to an integer by rounding down.


Number.prototype.k_sub

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:105

Overloads:

Subtracts the second number from the first one.


Inherited Properties

Table.prototype.@k_and

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:471

Inherited from: Table

Overloads:

This object is converted to a Boolean. If the result is true, the other expression is evaluated and the result retuned, otherwise this object is returned.


Table.prototype.@k_coalesce

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:531

Inherited from: Table

Overloads:

If this object is not null or void, it is returned, otherwise the other expression is evaluated and the result retuned.


Table.prototype.@k_else

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:568

Inherited from: Table

Overloads:

If this object is not void, it is returned, otherwise the other expression is evaluated and the result retuned.


Table.prototype.@k_or

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:494

Inherited from: Table

Overloads:

This object is converted to a Boolean. If the result is true this object is retuned, otherwise the other expression is evaluated and the result retuned.


Table.prototype.k_boolean

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:591

Inherited from: Table

Overloads:

This object is converted to a Boolean.


Table.prototype.k_is

src/main/java/bt7s7k7/treeburst/runtime/Realm.java:602

Inherited from: Table

Overloads:

Returns true if this object is equal by reference to the other object. This function returns inconsistent results for objects of type String and Number, and should not be used with them. The intended use is for reference comparisons between compound objects and null or void, without using their overload of the k_eq operator.