Switch #f+s to FOR..NEXT.
This commit is contained in:
@ -24,8 +24,8 @@
|
|||||||
: set-precision ( n -- ) to precision ;
|
: set-precision ( n -- ) to precision ;
|
||||||
|
|
||||||
internals definitions
|
internals definitions
|
||||||
: #f+s ( r -- ) fdup precision 0 ?do 10e f* loop
|
: #f+s ( r -- ) fdup precision for aft 10e f* then next
|
||||||
precision 0 ?do fdup f>s 10 mod [char] 0 + hold 0.1e f* loop
|
precision for aft fdup f>s 10 mod [char] 0 + hold 0.1e f* then next
|
||||||
[char] . hold fdrop f>s #s ;
|
[char] . hold fdrop f>s #s ;
|
||||||
forth definitions internals
|
forth definitions internals
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user