Project

Profile

Help

Bug #3419

closed

format-number() rounding issues

Added by John Lumley about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2017-08-30
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

format-number(0.95, '0.0') => "000"

whereas correctly:

format-number(0.92, '0.0') => "0.9"

and

format-number(0.95, '0.00') => "0.95"

and

format-number(0.95, '0.') => "1"

Actions #1

Updated by John Lumley about 7 years ago

  • Fix Committed on JS Branch 1.0, Trunk added

Fix committed, along with corrections to exponent format rounding

Actions #2

Updated by John Lumley about 7 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Debbie Lockett about 7 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 1.0.2

Bug fix applied in Saxon-JS 1.0.2 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page