math library Core

Utilities for performing numeric operations.

Basic numeric operations

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

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.
Randoms on Random
Provides functions for using Randoms.

Exceptions / Errors

ArithmeticException
Thrown when an exceptional arithmetic condition has occurred.