• GNU Forth has a floating point floor word, but not floating pointceiling word?

    From Buzz McCool@[email protected] to comp.lang.forth on Thu Apr 23 16:11:31 2026
    From Newsgroup: comp.lang.forth

    $ gforth
    Gforth 0.7.9_20260324
    ...
    Type `help' for basic help

    1.9e floor ok f:1
    f. 1. ok

    1.9e fceil
    *the terminal*:6:6: error: Undefined word
    1.9e >>>fceil<<<
    Backtrace:
    /usr/share/gforth/0.7.9_20260324/kernel/recognizer.fs:124:35: 0 $7DFF9A013568 throw
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From dxf@[email protected] to comp.lang.forth on Fri Apr 24 11:14:57 2026
    From Newsgroup: comp.lang.forth

    On 24/04/2026 9:11 am, Buzz McCool wrote:
    $ gforth
    Gforth 0.7.9_20260324
    ...
    Type `help' for basic help

    1.9e floor  ok f:1
    f. 1.  ok

    1.9e fceil
    *the terminal*:6:6: error: Undefined word
    1.9e >>>fceil<<<
    Backtrace:
    /usr/share/gforth/0.7.9_20260324/kernel/recognizer.fs:124:35:  0 $7DFF9A013568 throw

    : fceil ( r1 -- r2 ) fnegate floor fnegate ; ok
    1.9e fceil f. 2. ok
    -1.9e fceil f. -1. ok


    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Buzz McCool@[email protected] to comp.lang.forth on Fri Apr 24 08:29:10 2026
    From Newsgroup: comp.lang.forth

    On 4/23/2026 6:14 PM, dxf wrote:

    : fceil ( r1 -- r2 ) fnegate floor fnegate ; ok
    1.9e fceil f. 2. ok
    -1.9e fceil f. -1. ok


    Thanks for that.

    I still think that it is strange to have one but not the other.



    --- Synchronet 3.21f-Linux NewsLink 1.2