Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: D>F and S>F first draft Date: Wed, 25 Nov 2015 17:47:36 -0800 Organization: A noiseless patient Spider Lines: 17 Message-ID: <877fl5fs5j.fsf@nightsong.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="d09d25b6b873a1567c8bb21cd9fda25b"; logging-data="17260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ywGUL0IbRSrtkEcnQXmk7" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:Dhpbq9mR2/uDOaflLyt+FtCCfD0= sha1:P1GSbqHD5uiWmT/Y8bmsYSYsyXw= Xref: csiph.com comp.lang.forth:43793 "HAA" writes: > 2147483647. d>f f. > Three possible outcomes spring to mind: > 2147484000. ok > +INF ok > Error: Insufficient precision > Which of the above do you consider "insane"? The second and third. > If the program expected the answer 2147483647 then you have an > 'ambiguous condition' Actually you have a design error, since floating point numbers have limited precision, and if you're using them you're supposed to know that. That's why 2147484000 (or whatever the nearest float is) is the right answer.