Formerly Morgan-Stanley/morphir-elm. Search finds this package by either name.
This module provides a way to represent a number without the risk of rounding issues or division by zero for any of
the basic operations: +, -, *, /. More accurately a Number represents an arbitrary-precision rational number.
If you need irrational numbers please use a Float.
Checks if two numbers are equal.
equal one one == True
equal one (divide ten ten) == True
equal one zero == FalseChecks if two numbers are not equal.
notEqual one zero == True
notEqual zero one == True
notEqual one one == FalseChecks if the first number is less than or equal to the second
Checks if the first number is greater than the second
Checks if the first number is greater or equal than the second
Calculates the reciprocal of the number
Create a fractional representation of the number
Tells if the number is simplified
Represents an arbitrary-precision rational number.