小数转分数转换器 — 公式
## 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
### 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
计算示例
Convert 0.375 to a fraction.
- 0.375 × 1000 = 375 (numerator before simplification)
- GCD(375, 1000) = 125
- Numerator = 375 / 125 = 3
- Denominator = 1000 / 125 = 8
- Result: 3/8