The builtin type nat: 64 bit natural number.
NOTE: The implementation is incomplete, many methods fall back to the
equivalent "int" method.
NOTE: When compiled to Javascript a nat is stored as a float, since
Javascript only supports float numbers.
|
$Size()
int @public | Return the number of bytes in a nat.
|
|
$ToString()
string @public | Return the number in decimal form.
|
|
$ToString(format)
string @public | Return the number in the specified format.
|
|
$Compare(other)
int @public | Return < 0 when other is larger than this nat, zero when other is
equal to this nat, and > 0 when other is smaller than this nat.
|
|
$Equal(other)
bool @public | Return TRUE when other is equal to this nat.
|
|
$asString()
string @public | Return a string with one character that is equal to the number.
|
|
$asByteString()
byteString @public | Return a byteString with one byte that is equal to the number.
|
|
$toQuotedString()
string @public | Return the number in decimal form with quotes.
|
|
$toHex()
string @public | Return a string with the hex representation of the number.
|
|
$toHex(minSize)
string @public | Return a string with the hex representation of the number.
|
|
$toHexUpper()
string @public | Return a string with the hex representation of the number.
|
|
$toHexUpper(minSize)
string @public | Return a string with the hex representation of the number.
|
|
$isWhite()
bool @public | Return TRUE if the number is a white space character.
|
|
$isDigit()
bool @public | Return TRUE if the number is a digit character.
|
|
$isHexDigit()
bool @public | Return TRUE if the number is a hex digit character.
|
|
$isAlpha()
bool @public | Return TRUE if the number is an alphabetical character.
|
|
$isLower()
bool @public | Return TRUE if the number is a lower case alphabetical character.
|
|
$isUpper()
bool @public | Return TRUE if the number is an upper case alphabetical character.
|
|
$isWhiteAscii()
bool @public | Return TRUE if the number is a white space character.
|
|
$isAlphaAscii()
bool @public | Return TRUE if the number is an alphabetical ASCII character.
|
|
$isLowerAscii()
bool @public | Return TRUE if the number is a lower case alphabetical ASCII character.
|
|
$isUpperAscii()
bool @public | Return TRUE if the number is an upper case alphabetical ASCII character.
|
|
$toLowerAscii()
nat @public | Return the letter turned in to lower case for ASCII letters.
|
|
$toUpperAscii()
nat @public | Return letter turned in to upper case for ASCII letters.
|
|
$abs()
nat @public | Return the absolute value.
|
|
$floor()
float @public | Return the largest integral value not greater than the value.
|
|
$ceil()
float @public | Return the smallest integral value not less than the value.
|
|
$trunc()
float @public | Return the value rounded to integer, toward zero.
|
|
$round()
float @public | Return the value rounded to integer, away from zero.
|
|
$exp()
float @public | Return the value of e (the base of natural logarithms) raised to the
power of the value.
|
|
$log()
float @public | Return the natural logarithm of the value.
|
|
$log10()
float @public | Return the base 10 logarithm of the value.
|
|
$sqrt()
float @public | Return the nonnegative quare root of the value.
|
|
$pow(x)
float @public | Return the value raised to the power of x.
|
|
$sin()
float @public | Return the sine value, using the value as radians.
|
|
$sinh()
float @public | Return the hyperbolic sine value.
|
|
$cos()
float @public | Return the cosine value, using the value as radians.
|
|
$cosh()
float @public | Return the hyperbolic cosine value.
|
|
$tan()
float @public | Return the tangent value, using the value as radians.
|
|
$tanh()
float @public | Return the hyperbolic tangent value.
|
|
$asin()
float @public | Return the principal value of the arc sine of the value.
|
|
$acos()
float @public | Return the principal value of the arc cosine of the value.
|
|
$atan()
float @public | Return the principal value of the arc tangent of the value.
|
|
$atan2(x)
float @public | Return the principal value of the arg tangent of the value divided by
x.
|
|
|