Decimal to Fraction ConverterFormule

## Decimal to Fraction Converter

### Method

1. Multiply the decimal by the max denominator
2. Round to the nearest integer to get the numerator
3. Use the GCD (Greatest Common Divisor) to simplify
4. Divide both numerator and denominator by the GCD

Example: 0.375 with max denominator 1000 → 375/1000 → GCD(375,1000) = 125 → 3/8

Exemple Résolu

Convert 0.375 to a fraction.

  1. 0.375 × 1000 = 375 (numerator before simplification)
  2. GCD(375, 1000) = 125
  3. Numerator = 375 / 125 = 3
  4. Denominator = 1000 / 125 = 8
  5. Result: 3/8