FRACTION
HARBOR

Convert Decimals and Fractions

A finite decimal is parsed as a string of digits. 0.375 is 375/1000, then 3/8. Binary floating-point is not used to build that fraction. At most 24 digits after the decimal point are accepted. Repeating decimals are not inferred from a typed expansion such as 0.333. 1/3 is shown with repeating-bar form and a labeled approximation. 0.333333 is not claimed to be exact.

Decimal to fraction

onestenthshundredthsthousandths

Exact answer

Fraction:

Decimal:

    Decimals to fractions guide