Package
Conforms to
Methods
Type Methods
Value Type ๐ฏ
Represents a real number.
Methods
๐
๐ other ๐ฏ โก๏ธ ๐
Whether this value and other are considered equal.
โ
โ other ๐ฏ โก๏ธ ๐ฏ
Returns the receiver minus other.
โ
โ other ๐ฏ โก๏ธ ๐ฏ
Returns the receiver plus other.
โ
โ other ๐ฏ โก๏ธ ๐ฏ
Returns the receiver divided by other.
โ
โ other ๐ฏ โก๏ธ ๐ฏ
Returns the receiver multiplied by other.
๐ฎ
๐ฎ other ๐ฏ โก๏ธ ๐ฏ
Returns the floating-point remainder of the division operation receiver/other
. This will always be the value of receiver - n*other
and will always have the same sign as the receiver.
โ
โ other ๐ฏ โก๏ธ ๐
Returns true if the receiver is smaller than other.
โถ
โถ other ๐ฏ โก๏ธ ๐
Returns true if the receiver is greater than other.
โ๐
โ๐ other ๐ฏ โก๏ธ ๐
Returns true if the receiver is smaller than or equal to other.
โถ๐
โถ๐ other ๐ฏ โก๏ธ ๐
Returns true if the receiver is greater than or equal to other.
๐งโ๏ธ
โ๏ธ ๐ง โก๏ธ ๐ฏ
Returns the absolute value of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the sine of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the cosine of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the tangent of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the arcsine of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the arccosine of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the arctangent of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ exponent ๐ฏ โก๏ธ ๐ฏ
Returns this ๐ฏ to the exponent power, that is, baseexponent.
โทโ๏ธ
โ๏ธ โท โก๏ธ ๐ฏ
Returns the positive square root of this ๐ฏ.
๐ดโ๏ธ
โ๏ธ ๐ด โก๏ธ ๐ฏ
Returns the smallest integer greater than or equal to this ๐ฏ.
๐ตโ๏ธ
โ๏ธ ๐ต โก๏ธ ๐ฏ
Returns the largest integer less than or equal to this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the value of this ๐ฏ rounded to the nearest integer.
If the fractional portion of this ๐ฏ is 0.5 or greater, the argument is rounded to the next higher integer. If the fractional portion of this ๐ฏ is less than 0.5, the argument is rounded to the next lower integer.
๐ฃโ๏ธ
โ๏ธ ๐ฃ โก๏ธ ๐ฏ
Returns the base 2 logarithm of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the natural (base โ) logarithm of this ๐ฏ.
๐ฅโ๏ธ
โ๏ธ ๐ฅ โก๏ธ ๐ฏ
Returns the base 10 logarithm of this ๐ฏ.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ฏ
Returns the additive inverse of this ๐ฏ. If this ๐ฏ is x*, the result equals *-x.
๐กโ๏ธ
โ๏ธ ๐ก precision ๐ข โก๏ธ ๐ก
Creates a ๐ก representation of this ๐ฏ and the given precision โ the number of digits after the decimal separator โ.โ.
๐กโ๏ธ
โ๏ธ ๐ก โก๏ธ ๐ก
Creates a string representation of this number.
๐ขโ๏ธ
โ๏ธ ๐ข โก๏ธ ๐ข
Returns the ๐ข representation of this ๐ฏ.
Type Methods
๐ฅง
๐ ๐โ๏ธ ๐ฅง โก๏ธ ๐ฏ
Returns an approximation of ๐.
๐
๐ ๐โ๏ธ ๐ โก๏ธ ๐ฏ
Returns an approximation of โ (Eulerโs number).