Anonymous user
Talk:Square root by hand: Difference between revisions
m
no edit summary
Walterpachl (talk | contribs) m (→REXX) |
mNo edit summary |
||
Line 43:
.44721359549995793928183473374625524708812367192230514485417944908210418512756097
</pre>
::--Walter Pachl 18:54, 1 August 2021 (UTC)
::: In order to round, the REXX program would have to compute the ''next'' decimal digit. Bear in mind that the last decimal digit has already been computed and displayed (spit) to the terminal screen, so rounding in a spigot algorithm could entail ''backing up'' and changing (undoing) the previous decimal digit that was already just displayed (spit). With irrational numbers, there is no correct last decimal digit. Spigot algorithms are not designed for rounding, but for spitting digits one at a time. Rounding can be incorporated into the routine (by withholding one decimal digit), but would unnecessary complicate any program and make the comparisons of computer programming languages more problematic. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 20:38, 1 August 2021 (UTC)
|