Project

Profile

Help

Bug #3419

format-number() rounding issues

Added by John Lumley 6 months ago. Updated 5 months ago.

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

100%

Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
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"

History

#1 Updated by John Lumley 6 months ago

  • Fix Committed on JS Branch 1.0, Trunk added

Fix committed, along with corrections to exponent format rounding

#2 Updated by John Lumley 6 months ago

  • Status changed from New to Resolved

#3 Updated by Debbie Lockett 5 months 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