Re: json_decode/encode should return full precision values by default
| From: | Yasuo Ohgaki | Date: | Thu, 30 Jul 2015 00:58:47 +0000 |
| Subject: | Re: json_decode/encode should return full precision values by default | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87381@lists.php.net to get a copy of this message | ||
Hi Ryan,
On Thu, Jul 30, 2015 at 8:35 AM, Ryan Pallas <derokorian@gmail.com> wrote:
> I wrote draft RFC.
>>
>> https://wiki.php.net/rfc/precise_float_value
>>
>> Please comment. I would like to start RFC discussion shortly.
>> Thank you.
>>
>
> My thought would be why not -1 to make it obvious it has special meaning?
> When I see precision=0 I tend to think that means my numbers will be
> returned as ints no matter what (there is zero fractional precision)
> whereas this takes a valid value for precision and gives it special
> meaning. I fully support your end game, but giving a valid value a special
> meaning I do not like.
>
Thank you for your feedback. I'll update the RFC and use "-1" for it.
When I make the patch for this, I'll post new RFC discussion mail.
It will take a while. Comments are appreciated.
Regards.
--
Yasuo Ohgaki
yohgaki@ohgaki.net