--- gforth/float.fs 2002/12/15 17:38:51 1.40 +++ gforth/float.fs 2004/05/08 17:14:30 1.43 @@ -1,6 +1,6 @@ \ High level floating point 14jan94py -\ Copyright (C) 1995,1997 Free Software Foundation, Inc. +\ Copyright (C) 1995,1997,2003 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -211,7 +211,7 @@ set-current \G @code{f~abs}; r3=0: bitwise comparison; r3<0: @code{fnegate f~rel}. fdup f0= IF \ bitwise comparison - fp@ float+ 1 floats over float+ -text 0= + fp@ float+ 1 floats over float+ over str= fdrop fdrop fdrop EXIT THEN @@ -221,9 +221,3 @@ set-current ELSE fnegate f~rel THEN ; - -: f.s ( -- ) \ gforth f-dot-s - \G Display the number of items on the floating-point stack, - \G followed by a list of the items; TOS is the right-most item. - ." <" fdepth 0 .r ." > " fdepth 0 max maxdepth-.s @ min dup 0 - ?DO dup i - 1- floats fp@ + f@ f. LOOP drop ;