Types

Real

Real/Float type. Equivalent to the 'double' type in C

Parent types

Constructors

Real(n:Int)
Convert Int to Real
Real(s:Str)
Convert a string to real (floating) number, inefficiently

Methods

*(a:Real, b:Real)
Multiplication
+(a:Real, b:Real)
Addition
-(a:Real, b:Real)
Subtraction
/(a:Real, b:Real)
Division
<(a:Real, b:Real)
Less-than comparison
<=(a:Real, b:Real)
Less-than-or-equal comparison
==(a:Real, b:Real)
Equality comparison. Using this operator/function is not recommended. See http://how-to.wikia.com/wiki/Howto_compare_floating_point_numbers_in_the_C_programming_language .
>(a:Real, b:Real)
Greater-than comparison
>=(a:Real, b:Real)
Greater-than-or-equal comparison
Arg(x:Real)
ceil(r:Real)
Ceil a number
floor(r:Real)
Floor a number
inspect(r:Real)
Inspect Real
Int(r:Real)
Convert Real (floating) number to Int. Floating part is truncated.
round(r:Real)
Round a number
Str(r:Real)
Convert Real to Str
trunc(r:Real)
Truncate a number