math library Core

Utilities for performing numeric operations.

Basic numeric operations

  • Integers - functions that ceil, floor and round numbers.
  • Doubles - function for fuzzy equality

Nullable numeric operations

Random

Classes

FakeRandom
A fake Random implementation that always produces a given sequence of values. It should only be used in tests.

Extensions

Doubles on double
Provides functions for working with doubles.
Integers on int
Provides functions for working with ints.
NullableDoubles on double?
Provides functions for working with nullable doubles, specifically their operator overloads which do not work with the null-aware operator.
NullableIntegers on int?
Provides functions for working with nullable ints, specifically their operator overloads which do not work with the null-aware operator.
NullableNumbers on num?
Provides functions for working with nullable nums, specifically their operator overloads which do not work with the null-aware operator.
Randoms on Random
Provides functions for using Randoms.

Exceptions / Errors

ArithmeticException
Thrown when an exceptional arithmetic condition has occurred.