Deutsch English Français Italiano |
<vsmgng$17nvu$1@dont-email.me> 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: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Thu, 3 Apr 2025 19:32:31 +0200 Organization: A noiseless patient Spider Lines: 32 Message-ID: <vsmgng$17nvu$1@dont-email.me> 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> <vsjmdl$277bk$1@dont-email.me> <VsdHP.1828827$TBhc.1078002@fx16.iad> <vskaas$2rit9$1@dont-email.me> <gOjHP.130283$Xq5f.3427@fx38.iad> <vskmmb$388m7$1@dont-email.me> <RewHP.5710$j2D.5538@fx09.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Thu, 03 Apr 2025 19:32:34 +0200 (CEST) Injection-Info: dont-email.me; posting-host="82886f3d49290227763f84f959e98f63"; logging-data="1302526"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PdvDxuDlZncLjtvvC/ekl" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:Igii8qKR/v5Q0ukpTagybchstoI= In-Reply-To: <RewHP.5710$j2D.5538@fx09.iad> X-Enigmail-Draft-Status: N1110 Bytes: 2307 On 03.04.2025 15:42, Scott Lurndal wrote: > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes: >> On 03.04.2025 01:32, Scott Lurndal wrote: >>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes: >>>>> [...] >>>> >>>> Obviously a question of opinion depending on where one comes from. >>> >>> Verilog uses _ as a digit separator. >> >> And Kornshell's 'printf' uses ',' for output formatting as in >> >> $ printf "%,d\n" 1234567 >> 1,234,567 >> >> Maybe it should be configurable? > > It is already configurable in ksh Ah, right. (I hadn't tried that.) > $ LANG=en_US.utf8 printf "$%'10.2f\n" $(( ( 7540.0 * 118.70 ) + ( 2295.0 * 412.88 ) )) > > $1,842,557.60 $ LC_ALL=de_CH.UTF-8@isodate printf "%,d\n" 1234567 1'234'567 Works with %' and with %, as it seems. Janis