Factory.Math.Radix
Description
Constants
Functions
digitalRoot :: Integral decimal => decimal -> decimalSource
fromBase :: (Integral base, Integral decimal, Read decimal) => base -> String -> decimalSource
- Convert the
String-representation of a number in the specified base, to a decimal integer. - Both negative numbers and negative bases are permissible.
toBase :: (Integral base, Integral decimal) => base -> decimal -> StringSource
- Convert the specified integral decimal quantity, to an alternative base, and represent the result as a
String. - Both negative decimals and negative bases are permissible.
- The conversion to
Charcan only succeed where printable and intelligible characters exist to represent all digits in the chosen base; which in practice means(-36 <= base <= 36).