Re: Less free underscores in number literals

2010-10-24 Thread Jimmy Cao
I don't know about the Japanese, but Chinese people read like 12亿,3456万,7890. (simplified, traditional version would be exactly the same writing as Japanese). I've never seen it separated with commas though, I always see 1234567890. On Sun, Oct 24, 2010 at 6:59 PM, Jesse Phillips > wrote: > Rai

Re: Less free underscores in number literals

2010-10-24 Thread Jesse Phillips
Rainer Deyke Wrote: > Using groupings of three digits in Japanese seems extremely awkward, > especially for larger numbers, since you would have to mentally regroup > the digits in groups of four in order to read it. It's not just the > written language but the spoken language that uses groups of

Re: Less free underscores in number literals

2010-10-24 Thread Olivier Pisano
Le 24/10/2010 15:23, Kagamin a écrit : Rainer Deyke Wrote: Using groupings of three digits in Japanese seems extremely awkward, especially for larger numbers, since you would have to mentally regroup the digits in groups of four in order to read it. It's not just the written language but the s

Re: Less free underscores in number literals

2010-10-24 Thread Kagamin
Rainer Deyke Wrote: > Using groupings of three digits in Japanese seems extremely awkward, > especially for larger numbers, since you would have to mentally regroup > the digits in groups of four in order to read it. It's not just the > written language but the spoken language that uses groups of

Re: Less free underscores in number literals

2010-10-23 Thread bearophile
Rainer Deyke: > Also, even in English there are cases where groupings other than three > make sense. Consider: > > int price_in_cents = 54_95; I see. It was a cute idea, but in the end it doesn't work. Thank you and the other people for all the answers. Bye, bearophile

Re: Less free underscores in number literals

2010-10-23 Thread KennyTM~
On Oct 24, 10 03:11, Rainer Deyke wrote: On 10/23/2010 10:53, Kagamin wrote: It's how their language builds numbers. Numbers written in ideographs use this grouping, but this doesn't mean, they use the same grouping for arabic digits. For example, amazon.co.jp uses arabic numbers and western 3-d

Re: Less free underscores in number literals

2010-10-23 Thread Rainer Deyke
On 10/23/2010 10:53, Kagamin wrote: > It's how their language builds numbers. Numbers written in ideographs > use this grouping, but this doesn't mean, they use the same grouping > for arabic digits. For example, amazon.co.jp uses arabic numbers and > western 3-digit grouping. Using groupings of t

Re: Less free underscores in number literals

2010-10-23 Thread Kagamin
Olivier Pisano Wrote: > Chinese and Japanese people do create large numbers are by grouping > digits in myriads (every 10,000) rather than the Western thousands (1000) : > > http://en.wikipedia.org/wiki/Japanese_numerals#Large_numbers It's how their language builds numbers. Numbers written in i

Re: Less free underscores in number literals

2010-10-23 Thread Olivier Pisano
Le 23/10/2010 05:11, bearophile a écrit : This is a minor thing, if you aren't interested, ignore it. The support for underscore in number literals as done in D and Ada is a feature I like a lot. But you may write: long x = 1_000_000_000_00; The usage of underscores there doesn't correspond t

Re: Less free underscores in number literals

2010-10-22 Thread Austin Hastings
On 10/22/2010 11:11 PM, bearophile wrote: This is a minor thing, if you aren't interested, ignore it. The support for underscore in number literals as done in D and Ada is a feature I like a lot. But you may write: long x = 1_000_000_000_00; The usage of underscores there doesn't correspond t

Re: Less free underscores in number literals

2010-10-22 Thread KennyTM~
On Oct 23, 10 11:11, bearophile wrote: This is a minor thing, if you aren't interested, ignore it. The support for underscore in number literals as done in D and Ada is a feature I like a lot. But you may write: long x = 1_000_000_000_00; The usage of underscores there doesn't correspond to t

Less free underscores in number literals

2010-10-22 Thread bearophile
This is a minor thing, if you aren't interested, ignore it. The support for underscore in number literals as done in D and Ada is a feature I like a lot. But you may write: long x = 1_000_000_000_00; The usage of underscores there doesn't correspond to the thousands, this may lead to mistakes,