class

Cosmo::Intrinsic::Numbers::Round

Inherits Cosmo::Intrinsic::IFunction / Cosmo::Callable / Reference / Object

Returns the number rounded to the nth decimal point

Constructors

new(interpreter : Interpreter, _self : Num, token : Token)
Source

Instance methods

arity

The amount of parameters this function will accept

Source
call(args : Array(ValueType)) : Num

uint n: The decimal point to round to

Source