Sujet : Re: "The Best Programming Language for the End of the World"
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 15. Apr 2025, 16:17:32
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2025Apr15.171732@mips.complang.tuwien.ac.at>
References : 1 2 3 4 5
User-Agent : xrn 10.11
albert@spenarnc.xs4all.nl writes:
1_0 2_0 F+ FS. \ algol 68 compatible.
>
The exponent 0 can be ommitted:
1_ 2_ F+ FS. 3.0000000000000000000_
Python 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
print(1_0+2_0)
30
Gforth (development):
1_0 2_0 + . \ output: 30
1_ 2_ + . \ output: 3
With _/~ you can print numbers like
567.123~
and read in just the same.
You can also print numbers like
567.123e
and read in just the same. It's just that the specification of
F. specifies neither "e" nor "~".
- anton
-- M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.htmlcomp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html New standard: https://forth-standard.org/EuroForth 2023 proceedings: http://www.euroforth.org/ef23/papers/EuroForth 2024 proceedings:
http://www.euroforth.org/ef24/papers/