Project

Profile

Help

Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.

Bug #3133

closed

xs:numeric cast not preserving value type

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

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

100%

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

Description

xs:numeric acts as a union of the numeric types, so casting, unless in error, should preserve the type of the argument. Currently they are returning @xs:double@.

Corrected in Atomic.numeric to return the item if matching xs:numeric type.

Please register to edit this issue

Also available in: Atom PDF Tracking page