Re: Thousands Separator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jennifer wrote:

> On Jan 16, 2015, at 11:51 AM, Jim Lucas wrote:
>> Could you explain the use of what you're describing/requesting?
>>
>> And how number_format would not work in its place.
> 
> 	I'm talking about entering large numbers in the code.  If I have a constant, e.g.
> $num = '123456789';
> 
> it would be nice to enter it as:
> $num = '123_456_789';
> 
> just to make it easier to read.  As I mentioned, you can do that in Perl.  The underscore takes the place of commas only for readability.  It's not a deal breaker, but it sure would be nice! :)

Besides Perl, there are several other languages which allow such "digit
separators".  Wikipedia has an article about it:
<http://en.wikipedia.org/wiki/Integer_literal#Digit_separators>.
-- 
Christoph M. Becker

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux