Source
Edit
NOTE: Currently int is not acceptable when it comes to float about functions
func comb(n, k: int): int {....raises: [], tags: [], forbids: [].}
-
Source
Edit
func isqrt[T: SomeNumber](x: T): int
-
Example:
assert 2 == isqrt 5
Source
Edit
func modf(x: SomeFloat): tuple[intpart: float, floatpart: float]
-
Source
Edit
func perm(n, k: Natural): int {....raises: [], tags: [], forbids: [].}
-
Source
Edit
func perm(n: int): int {....raises: [], tags: [], forbids: [].}
-
equal to perm(n,n), returns n!
Source
Edit
func remainder(x: SomeNumber; y: SomeNumber): float
-
Source
Edit