Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.forth    |    Forth programmers eat a lot of Bratwurst    |    117,927 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 116,978 of 117,927    |
|    Anton Ertl to albert@spenarnc.xs4all.nl    |
|    Re: FP number syntax    |
|    31 Dec 24 21:57:55    |
      From: anton@mips.complang.tuwien.ac.at              albert@spenarnc.xs4all.nl writes:       >A forth that interprets e.g. 3.14 as a floating point number       >is as non-standard as a Forth that interprets 3.14 is a double.              Forth-94 and Forth-2012 do not standardize recognizing 3.14, so       standard systems are allowed to deal with "3.14" as they deem useful.       The possible options include recognizing "3.14" as a double-cell       integer, as a FP number, or not recognizing "3.14" and producing an       error message.              However, I think that recognizing "314." as a double-cell integer (as       required by these standards), but recognizing "3.14" as an FP number       is even more confusing and error prone than recognizing both as a       double-cell integer.              >How would a proposal like this fare:       >"       > A double number is only recognized as it ends *and starts*       > with a period.              Existing practice? What's wrong with "#314."?              > Recognizing a double if it ends only in a period becomes       > obsolescent.       >"              That part may have an easier time.              - anton       --       M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html       comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html        New standard: https://forth-standard.org/        EuroForth 2024: https://euro.theforth.net              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca