Skip to main content

Maths

add

(a Number) (b Number) | add | (a + b Number)

Adds two numbers and returns the result. This operation promotes the result to a proper type based on argument types.

cmp

(a Number) (b Number) | cmp | (a == b Bool)

Compares two numbers.

div

(a Number) (b Number) | div | (a / b Number)

Divides a by b and returns the result. This operation promotes the result to a proper type based on argument types.

mult

(a Number) (b Number) | mult | (a * b Number)

Multiplies two numbers and returns the result. This operation promotes the result to a proper type based on argument types.

sub

(a Number) (b Number) | sub | (a - b Number)

Subtracts b from a and returns the result. This operation promotes the result to a proper type based on argument types.

Rate this page