Deutsch   English   Français   Italiano  
<vt2mhf$1qtjd$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Tue, 8 Apr 2025 10:25:19 +0200
Organization: A noiseless patient Spider
Lines: 78
Message-ID: <vt2mhf$1qtjd$2@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>
 <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 08 Apr 2025 10:25:20 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="36723575c292a64f7875af78bfff292a";
	logging-data="1930861"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+U/SZgK2ljJFxGqxIsHFrBCh9k10TBORA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.11.0
Cancel-Lock: sha1:7orHDtotboykBs4eontgIBBwtNc=
In-Reply-To: <vt1h48$n5fs$1@dont-email.me>
Content-Language: en-GB
Bytes: 4598

On 07/04/2025 23:46, bart wrote:
> On 07/04/2025 21:14, Janis Papanagnou wrote:
>> On 07.04.2025 20:18, bart wrote:
>>> On 07/04/2025 19:12, Michael S wrote:
>>>> On Mon, 7 Apr 2025 19:02:34 +0100
>>>> bart <bc@freeuk.com> wrote:
>>>>
>>>>> On 04/04/2025 04:01, Lawrence D'Oliveiro wrote:
>>>>>> 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?
>>>>>
>>>>> Try 20 * BILLION; it will overflow if not careful.
>>>
>>> (Actually both 10/20 billion will overflow u32; I was thinking of 20
>>> billion billion overflowing u64.)
>>>
>>>>> I'd normally write '20 billion' outside of C, since I use such
>>>>> numbers, with lots of zeros, constantly when writing test code.
>>>>>
>>>>> But when it isn't all zeros, or the base isn't 10, then numeric
>>>>> separators are better.
>>>>>
>>>>
>>>> Is not it "20 milliards" in British English?
>>>
>>> We (UK) now use 'billion' for 1E9; in the past it meant 1E12.
>>>
>>> 'Milliardo' is Italian for 'billion'; perhaps in a few other 
>>> languages too.
>>
>> "In a few other languages"? - That was not my impression;
>> and a quick look into Wikipedia seems to support that.
>>
>> The global map[*] is interesting!
>>
>> (Read the articles for the details, the historic base, and
>> especially what's standard in countries, and why the common
>> standard is in some cases like GB not used primarily today.)
>>
> 
>> https://upload.wikimedia.org/wikipedia/commons/7/7c/World_map_of_long_and_short_scales.svg
> 
> I'd never heard of short and long scales. The full article is here:
> 
> https://en.wikipedia.org/wiki/Long_and_short_scales
> 
> I only knew about the old and new meanings of 'billion' in the UK, its 
> US meaning, and the use of 'milliard' (however it is spelt, since I'm 
> only familiar with it in speech), in Italian.
> 
> (In source code, it would also be useful to use 1e9 or 1e12, 
> unfortunately those normally yield floating point values. I can't do 
> much about that in C, but I will see what can be done with my own stuff.)
> 

In Norwegian, we use the long scale - "million, milliard, billion, 
billiard, trillion, trilliard".  The spelling is the same as in English 
(I don't know about after "trilliard"), but the pronunciation is a 
little different.

I think it is safest to say "thousand million", "million million", or 
use SI prefixes or scientific notation, which are often more appropriate 
in the context.  (The exception is for things like national debts or the 
price of new fighter jets - and then the numbers are so meaninglessly 
big that being three orders of magnitude out does not change how you 
feel about them!)