Skip to content

Commit 7ab1537

Browse files
release 1.4
add F>S word to the full version with floating point; improve LOGS.FTH and MATH.FTH
1 parent f756cc4 commit 7ab1537

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/LOGS.FTH

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ DECIMAL
7272
THEN
7373
2DUP 2DUP FTRUNC F= IF
7474
2DUP ['] F>D CATCH 0= IF
75+
2SWAP 2DROP
7576
2DUP DABS 17. DU< IF
7677
DROP
7778
DUP 0< >R
7879
ABS >R
79-
2DROP
8080
1E0
8181
BEGIN
8282
R@ 1 AND IF 2OVER F* THEN

examples/MATH.FTH

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ DECIMAL
344344
\ exponentiation by squaring r1^n when n is a small integer |n|<=16
345345
2DUP 2DUP FTRUNC F= IF \ r2 has no fractional part
346346
2DUP ['] F>D CATCH 0= IF \ r2 is convertable to a double n
347+
2SWAP 2DROP \ drop old r2
347348
2DUP DABS 17. DU< IF \ |n| <= 16
348349
DROP \ drop high order of n
349350
DUP 0< >R \ save sign of n
350351
ABS >R \ save |n|
351-
2DROP \ drop old r2
352352
1E0 \ -- r1 1.0
353353
BEGIN
354354
R@ 1 AND IF 2OVER F* THEN

0 commit comments

Comments
 (0)