• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rurban / Cpanel-JSON-XS / 493
69%

Build:
DEFAULT BRANCH: master
Ran 09 Sep 2019 03:07PM UTC
Jobs 1
Files 3
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
493

push

travis-ci

pali
For JSON_TYPE_INT encoder allow to pass Math::BigInt and Math::BigFloat objects

Option ->allow_bignum is required. Without it it is not possible to pass
Math::BigInt and Math::BigFloat objects.

For converting Math::BigFloat to Math::BigInt should be used $obj->bint
method, equivalent of perl's int() function for non-big floats. But this
method is not available in older Math::BigFloat versions. Older
Math::BigFloat versions have $obj->as_number method which should do same
thing as $obj->bint method but in some Math::BigFloat versions it is broken
and loose precision, so it cannot be used.

So for conversion from Math::BigFloat to Math::BigInt use either
$obj->bceil or $obj->bfloor method based on information if $obj is negative
or not. This is simulation of rounding and should give us same result as
$obj->bint method.

78 of 89 relevant lines covered (87.64%)

32.63 hits per line

Jobs
ID Job ID Ran Files Coverage
16 493.16 (COVERAGE=1 AUTHOR_TESTING=1) 09 Sep 2019 03:07PM UTC 0
87.64
Travis Job 493.16
Source Files on build 493
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #493
  • 28b6e202 on github
  • Prev Build on master (#490)
  • Next Build on master (#496)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc