Functions for primitive types
liftable atan(x: strict Float): Float
Returns the arc tangent of a value; the returned angle is in the range -π/2 through π/2.
Special cases:
liftable cos(x: strict Float): Float
Returns the trigonometric cosine of an angle in radians.
Special cases:
liftable floatToInt(x: strict Float): Int
Converts the given float to an integer removing the decimal part
liftable def floatToInt(x: strict Float): Int = extern("floatToInt")
liftable intToFloat(x: strict Int): Float
Converts the given integer to a float.
liftable def intToFloat(x: strict Int): Float = extern("intToFloat")
liftable log(x: strict Float, base: strict Float): Float
Returns the logarithm to base base
of x
liftable max(a: Int, b: Int): Int
Compute the maximum of two integer values.
liftable min(a: Int, b: Int): Int
Compute the minimum of two integer values.
liftable pow(base: strict Float, exponent: strict Float): Float
Returns the value of the first argument raised to the power of the second argument.
liftable sin(x: strict Float): Float
Returns the trigonometric sine of an angle x
in radians.
Special cases:
liftable tan(x: strict Float): Float
Returns the trigonometric tangent of an angle in radians.
Special cases:
liftable toString[T](arg: strict T): String
Converts any type into its typical string representation