std.num

Operations on numbers.

Types

type Num a = {
    ord : std.cmp.Ord a,
    (+) : a -> a -> a,
    (-) : a -> a -> a,
    (*) : a -> a -> a,
    (/) : a -> a -> a,
    negate : a -> a
}

The basic operation on numbers. Defined for both the primitive type Int and Float

Values

let + ?num : forall a . [std.num.Num a] -> a -> a -> a

The addition operator

let - ?num : forall a . [std.num.Num a] -> a -> a -> a

The subtraction operator

let * ?num : forall a . [std.num.Num a] -> a -> a -> a

The multiplication operator

let / ?num : forall a . [std.num.Num a] -> a -> a -> a

The division operator

let negate ?num : forall a . [std.num.Num a] -> a -> a

The negation function