Poweranimals
- 68
- 0
What is the best way to convert a fraction into a decimal. IE: 3/8?
The discussion revolves around methods for converting the fraction 3/8 into its decimal form. Participants explore various approaches, including programming algorithms and traditional long division, while considering the limitations of computational precision.
There is no consensus on the best method for converting fractions to decimals, with multiple competing views on the effectiveness of programming algorithms versus traditional long division. Participants acknowledge the limitations of computational methods without reaching a definitive conclusion.
Participants note the potential for inaccuracies in decimal representation due to the limitations of computer precision, particularly in relation to the number of digits that can be accurately computed.
cookiemonster said:The easiest way is to just long divide until you start getting 0's or you satisfy the number of digits you need.
cookiemonster
ophecleide said:Yeah, I can see that. If division is not an option, your program may be a viable option.
Integral said:Windows generates about 15 decimal digits so any fraction which requires more digits then this cannot be precisely computed by windows.