Talk:Convert decimal number to rational: Difference between revisions

(It probably won't need trimming. Just add a note)
Line 16:
:Therefore, there is no way to put an irrational number into your code as a decimal number, even if you can also indicate number of repeating digits. You *can* say PI or sqrt(2) in most languages, but what you get from those is just the largest (truncated) decimal version that fits into your floating point representation.
:To summarize, IMHO, *yes*, only rationals make sense for this task. --[[User:Util|Util]] 14:49, 12 June 2011 (UTC)
:: Good, I just wanted to clarify whether the task was talking about machine precision floats or any conceptual real numbers, because specifying a "best approximation" for irrationals would make it a lot more complicated. --[[User:Ledrug|Ledrug]] 22:01, 12 June 2011 (UTC)
 
== Repetitive digit chains and rounding ==
Anonymous user