Calendrical v0.1.2 Calendrical.Math.Fraction View Source

Link to this section Summary

Functions

Returns a binary string representing the superscript character of an integer digit

Returns a binary string representing the superscript character of an integer digit

Returns a fraction as a binary with the fractional numerator formatted with superscript characters, the denominator with subscript characters and a fractional slash separating them

Link to this section Functions

Link to this function convert_to_improper_fraction(arg) View Source
Link to this function div(rata_die_1, rata_die_2) View Source
Link to this function mult(rata_die_1, rata_die_2) View Source
Link to this function subscript(digit) View Source
subscript(integer) :: String.t

Returns a binary string representing the superscript character of an integer digit.

Example

iex> Calendrical.Math.Fraction.subscript 5
"₅"
Link to this function superscript(digit) View Source
superscript(integer) :: String.t

Returns a binary string representing the superscript character of an integer digit.

Example

iex> Calendrical.Math.Fraction.superscript 5
"⁵"

Returns a fraction as a binary with the fractional numerator formatted with superscript characters, the denominator with subscript characters and a fractional slash separating them.

Example

iex> Calendrical.Math.Fraction.to_string {2, {16, 25}}
"2ⁱ⁶⁄₂₅"