A double-precision floating-point value. All numeric literals are Numbers.
Returns the receiver modulus aNumber.
Returns a new number with the bitwise AND of the receiver and aNumber.
Returns a new number that is the product of the receiver and aNumber.
Same as pow(aNumber).
Returns a new number that is the sum of the receiver and aNumber.
Returns a new number that is the difference of the receiver and aNumber.
Returns a new number with the value of the receiver divided by aNumber.
Shifts the bits of the receiver left by the number of places specified by aNumber.
Shifts the bits of the receiver right by the number of places specified by aNumber.
Returns the bitwise xor with the receiver (both numbers are converted to longs for the operation).
Returns a number with the absolute value of the receiver.
Returns a number with the arc cosine of the receiver.
Returns the number as binary digits inside a string. 42 asBinary -> "101010"
Returns a Buffer containing a the number of bytes specified by optionalNumberOfBytes (up to the size of a double on the platform) of the receiver. If no optionalNumberOfBytes is specified, it is assumed to be the number of bytes in a double on the host platform.
Returns a String containing a single character whose value is the value of the first byte of the receiver. Returns nil if the number has no valid UCS mapping.
Returns the number as hex digits inside a string. 97 asHex -> "61"
Returns a new Number containing a lower case version of the receiver.
Returns self.
Returns the number as octal digits inside a string. 436 asOctal -> "664"
Returns a string representation of the receiver. For example:
1234.5678 asString(0, 2)
would return:
1234.57
Returns a Sequence containing a 4 byte representation of the uint32 value of the receiver.
Returns a new Number containing a upper case version of the receiver.
Returns a number with the arc sine of the receiver.
Returns a new Number containing 1 if the receiver cast to a long has its bit set to 1 at bitIndexNumber. Otherwise returns 0.
Returns a number with the arc tangent of the receiver.
Returns a number with the arc tangent of y/x where y is the receiver and x is aNumber.
Returns true if the receiver's value is between or equal to aNumber1 and aNumber2, otherwise returns false.
Returns a new number with the bitwise AND of the receiver and aNumber.
Returns a new number with the bitwise complement of the receiver. (The 0 bits become 1s and the 1 bits become 0s. )
Returns a new number with the bitwise AND of the receiver and aNumber.
Returns a new number with the bitwise XOR of the receiver and aNumber.
Returns a number with the receiver's value rounded up to the nearest integer if its fractional component is greater than 0.
Returns self if the receiver is between aNumber1 and aNumber2. Returns aNumber1 if it is less than aNumber1. Returns aNumber2 if it is greater than aNumber2.
Returns the combinations where the receiver is the number of different objects and size is the number to be arranged.
Object containing number constants e, inf, nan and pi.
Returns the cosine of the receiver.
Returns the cube of the receiver.
Returns the minimum double precision float value.
Returns the constant e.
Returns e to the power of the receiver.
Returns the factorial of the receiver.
Returns the maximum double precision float value.
Returns the minimum float value.
Returns a number with the receiver's value rounded down to the nearest integer if its fractional component is not 0.
Returns a not-a-number constant.
Returns the maximum integer value.
Returns the minimum integer value.
Returns true if receiver is an alphanumeric character value , false otherwise.
Returns true if receiver is a control character value , false otherwise.
Returns true if receiver is a numeric digit value , false otherwise.
Returns true if integer form of the receiver is even , false otherwise.
Returns true if the receiver is a printing character value except space , false otherwise.
Returns true if the receiver is a hexadecimal character value , false otherwise.
Return true if receiver is in one of the Sequence sequenceSets, otherwise false.
Returns true if receiver is a letter character value , false otherwise.
Returns true if the receiver is a lowercase character value , false otherwise.
Returns true if the receiver is not a number. Otherwise returns false.
Returns true if integer form of the receiver is odd , false otherwise.
Returns true if the receiver is a printing character value, including space , false otherwise.
Returns true if the receiver is a punctuation character value , false otherwise.
Returns true if the receiver is a space, formfeed, newline carriage return, tab or vertical tab character value , false otherwise.
Returns true if the receiver is a uppercase character value , false otherwise.
Writes the receiver's code into the stream.
Returns the logarithm of the receiver. The base is taken as the value of the first argument or the constant e if the first argument is omitted.
Returns the base 10 logarithm of the receiver.
Returns the base 2 logarithm of the receiver.
Returns the maximum long value.
Returns the minimum long value.
Returns the greater of the receiver and aNumber.
Returns the lesser of the receiver and aNumber.
Returns a number between or equal to low and high. If the receiver is equal to or between low and high, the receiver is returned. If the receiver is less than low, low is returned. If the receiver is greater than high, high is returned.
Returns the receiver modulus aNumber.
Returns a infinity constant.
Returns new number that is negated version of the receiver.
Returns the permutations where the receiver is the number of different objects and size is the number to be arranged.
Returns the constant pi.
Returns the value of the receiver to the aNumber power.
Prints the number.
Evaluates message a number of times that corresponds to the receivers integer value. This is significantly faster than a for() or while() loop.
Returns a number with the receiver's value rounded up to the nearest integer if its fraction component is >= .5 or rounded up to the nearest integer otherwise.
Returns a number with the receiver's value rounded down to the nearest integer if its fraction component is <= .5 or rounded up the the nearest integer otherwise.
Returns the maximum short value.
Returns the minimum short value.
Returns the sine of the receiver.
Returns the square root of the receiver.
Returns the square of the receiver.
Returns the tangent of the receiver.
Returns the number in another base. 42 toBase(2) -> "101010"
Returns the number in another base printing out entire bytes. 42 toBaseWholeBytes(2) -> "00101010"
Returns 1 if the receiver is 0. Returns 0 otherwise.
Returns the maximum unsigned int value.
Returns the maximum unsigned long value.
Returns the minimum unsigned int value.
Returns a new number with the bitwise OR of the receiver and aNumber.