Re: [RFC] Number Format Separator

From: Date: Wed, 30 Dec 2015 23:43:25 +0000
Subject: Re: [RFC] Number Format Separator
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-89933@lists.php.net to get a copy of this message
On 30 December 2015 at 23:00, Davey Shafik <davey@php.net> wrote: > how will settype($string, int|float), intval(), floatval(), is_numeric() > and ctype_digit() work with this change? My understanding is that those functions will continue to work as they do currently. The numeric literals are resolved by the compiler into numbers when the code is compiled, so there will be no difference. i.e. this RFC does not affect PHP at runtime at all, only the compile step. > What will var_dump() etc. show? var_dump(1_000_000) will have the same output as var_dump(1000000) > there should be an explicit way to support "1_000_000" => (int) 1_000_000. This > should be part of the RFC. I don't think it should be part of this RFC. That sounds like a completely different RFC, or is covered by NumberFormatter::parse(). cheers Dan

« previous php.internals (#89933) next »