0

Encoded

Num to Fraction

About fraction numbers

Fraction numbers (Fractions) represent numbers in the form of "numerator/denominator" as the ratio (quotient) of the numerator and denominator.

In DenCode, the entered number (integer or decimal) is converted into an irreducible fraction (a fraction that cannot be reduced any further).

Examples of fraction conversion are as follows.

Decimal (Input)Fraction (Output)
00/1
11/1
22/1
0.51/2
0.753/4
1.26/5
-0.125-1/8
1234.52469/2

A decimal ending with "..." is interpreted as a "truncated number" and is converted based on the following rules:

Examples of conversion for decimals ending with "..." are as follows.

Decimal (Input)Fraction (Output)
0.333...1/3
0.142857142857...1/7
0.123...123/1000