This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7233 - Total page size may be reported using scientific notation
Summary: Total page size may be reported using scientific notation
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-06 11:55 UTC by fd
Modified: 2009-08-06 12:49 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-08-06 11:55:43 UTC
See bug 7230 for a similar problem on the UI.

For some reason, the fn:sum method sometimes returns a double instead of an
integer, even when its arguments do look like integers. Dubles in XSLT2 are formatted using the scientific notation as soon as they exceed 1 million.

Example: http://www.sportinformant.com/ contains a 2.15MB image and the Checker reports:
[[
The total size of the page (2.582267E6 bytes) exceeds 20 kilobytes (Primary document: 21922, Images: 2.550553E6, Style sheets: 9792)
]]

That's true but that's not really readable.
Comment 1 fd 2009-08-06 12:49:43 UTC
Sizes reported by the Checker are now formatted in a more human friendly format:
 2.5MB, 3.4KB, ...