import * as rimbu from "https://deno.land/x/rimbu@1.2.1/typical/num.ts";
Type Aliases
T Add | Returns the sum of given numbers. |
T Decr | Decreases a positive number by 1, or if the number is not positive, returns never. |
T Div | Returns the result of dividing the first given natural number by the second. |
Returns a tuple containing the quotient and remainer of dividing the first number by the second. | |
Returns true if the given numbers are equal. | |
Returns true if the first given number is greater than the second. | |
Returns true if the given first natural number is greater or equal than the second. Returns never otherwise. | |
T Inc | Add 1 to the given natural number. |
Returns true if the given number is greater than or equal to given L, and less than or equal to given H, and returns false otherwise. | |
Returns true if the given natural number is even, or never otherwise. | |
Returns true if the given number is a natural number (>= 0), false otherwise | |
Returns true if the given number is negative (< 0), false otherwise. | |
Returns true if the given natural number is odd, or never otherwise. | |
Returns true if the given number is positive (> 0), false otherwise | |
Returns true if the first given number is less than the second. | |
Returns true if the first given number is less than or equal to the second. | |
T Max | Returns the largest of the given 2 natural numbers, of never otherwise |
T Min | Returns the smallest of the given 2 natural numbers, of never otherwise |
T Mod | Returns the remainder after dividing the first given natural number by the second. |
T Mult | Returns the result of multiplying the given natural numbers. |
Returns true if the given numbers are not equal. | |
T Pow | Returns the power of the first natural number to the second given natural number. |
Returns the result of subtracting N2 from N1. |