https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25513

--- Comment #17 from Jonathan Druart <[email protected]> 
---
(In reply to Jonathan Druart from comment #14)
> buster has JSON=4.02
> stretch has JSON=2.90
> 
> % more xxx.pl
> use Modern::Perl;
> use Mojo::JSON qw(decode_json encode_json);
> my $bytes = encode_json {foo => 9963405519357589504, bar =>
> 10177559957753600000};
> say $bytes;
> 
> buster:
> % perl xxx.pl
> {"bar":10177559957753600000,"foo":9963405519357589504}
> 
> stretch:
> % perl xxx.pl
> {"bar":10177559957753600000,"foo":9963405519357589504}
> 
> I am missing something obvious...

Note that this was meaningless, we wanted to test:

use Mojo::JSON qw(decode_json encode_json);
my $bytes = encode_json {foo => 9963405519357589504.0000, bar =>
10177559957753600000.0000};
say $bytes;

Both return 
{"bar":1.01775599577536e+19,"foo":9.96340551935759e+18}

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to