Deutsch English Français Italiano |
<slrnvv82gk.2aciv.candycanearter07@candydeb.host.invalid> 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: candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Mon, 7 Apr 2025 17:30:03 -0000 (UTC) Organization: the-candyden-of-code Lines: 30 Message-ID: <slrnvv82gk.2aciv.candycanearter07@candydeb.host.invalid> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 07 Apr 2025 19:30:04 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d7a7b9d90d65c7df5440b5254fff55a9"; logging-data="332765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nbjAtReJPwYE32htvY5iJPJK6ZIaUKZQFpsGjwr8mrA==" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:PzmDTXW5etD+k3VfEkgMX1xTaf8= X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]% b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx `~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D Bytes: 2434 Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 03:01 this Friday (GMT): > On Wed, 2 Apr 2025 16:33:46 +0100, bart wrote: > >> Here, tell me at a glance the magnitude of >> this number: >> >> 10000000000 > > #define THOUSAND 1000 > #define MILLION (THOUSAND * THOUSAND) > #define BILLION (THOUSAND * MILLION) > > uint64 num = 10 * BILLION; > > Much easier to figure out, don’t you think? I used to do a bit of code for a codebase that did that with SECONDS and MINUTES since (almost) every "time" variable was in milliseconds, and it was very nice. That is just my subjective opinion, though. :P it was more like #define SECONDS *10 #define MINUTES SECONDS*60 #define HOURS MINUTES*60 , though. Probably would be more notably annoying to debug in weird cases if the whole language/codebase wasnt borked spagetti :D -- user <candycane> is generated from /dev/urandom