Deutsch English Français Italiano |
<871pu3d1al.fsf@nosuchdomain.example.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Mon, 07 Apr 2025 16:01:06 -0700 Organization: None to speak of Lines: 18 Message-ID: <871pu3d1al.fsf@nosuchdomain.example.com> References: <87y0wjaysg.fsf@gmail.com> <vsj1m8$1f8h2$1@dont-email.me> <vsj2l9$1j0as$1@dont-email.me> <vsjef3$1u4nk$1@dont-email.me> <vsjg6t$20pdb$1@dont-email.me> <vsjgjn$1v1n4$1@dont-email.me> <vsjk4k$24q5m$1@dont-email.me> <vsjlcp$230a5$1@dont-email.me> <vsni1v$291i3$5@dont-email.me> <vt13vp$bjs0$1@dont-email.me> <20250407211216.00006238@yahoo.com> <vt14u7$bjs0$2@dont-email.me> <vt1bmt$jf54$1@dont-email.me> <vt1h48$n5fs$1@dont-email.me> <vt1l83$n5fs$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Tue, 08 Apr 2025 01:01:11 +0200 (CEST) Injection-Info: dont-email.me; posting-host="eb9757dfc1fa39d24f8b16770c2d3244"; logging-data="905818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xTgrDu++sMSnVVa3Rn9Oe" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:llVuaXhmf853QbJw1T6eadOo0Ac= sha1:zx567gXhCEr6dtV8veNyi+CtnjQ= Bytes: 2086 bart <bc@freeuk.com> writes: [...] > Since numbers using exponents without also using decimal points are > rare in my code base, I've decided to experiment with numbers like 1e6 > being integer constants rather that floats. (This is IN my language.) You might want to look at Ada for existing practice. In C, a constant with either a decimal point or an exponent is floating-point. In Ada, 1.0e6 is floating-point and 1e6 is an integer. Of course this isn't very helpful if you want to represent numbers with a lot of non-zero digits; for that, you need digit separators. [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */