NAME ^

src/builtins/any_num.pir - Num-like functions and methods for Any

DESCRIPTION ^

This file implements the methods and functions of Any that are most closely associated with the Num class or role. We place them here instead of src/classes/Any.pir to keep the size of that file down and to emphasize their generic, "built-in" nature.

Methods ^

abs()

cis($angle)

log

 our Num multi Num::log         ( Num $x: Num :$base )
 our Num multi Math::Basic::log ( Num $x, Num :$base )
Logarithm of base $base, default Natural. Calling with $x == 0 is an error.

polar

rand()

sqrt()

srand()

truncate()

int

unpolar($angle)


parrot