Change id: fn-format-number
Implementations | ||||||
Tests | BaseX 8.5 beta XQ31 (QT3 vCVS) |
Saxon-EE 9.7.0.11 XP31 (QT3 v0.6) |
Saxon-EE 9.7.0.11 XQ31 (QT3 v0.6) |
XmlPrime 4.0.0.16079 XP31 (QT3 vCVS) |
XmlPrime 4.0.0.26293 XQ31 (QT3 vCVS) |
XmlPrime 4.0.0.27704 XQX31 (QT3 vCVS) |
---|---|---|---|---|---|---|
numberformat101[+]
X numberformat101: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: format-number(12345.678, '9.9999e999') |
pass | pass | pass | pass | pass | pass |
numberformat102[+]
X numberformat102: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: format-number(12345.678, '9.9999E999') |
pass | pass | pass | pass | pass | pass |
numberformat103[+]
X numberformat103: Created on: 2014-12-05 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare default decimal-format exponent-separator="E"; let $x := fn:format-number(12345.678, '9.9999E999') return $x |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat104[+]
X numberformat104: Created on: 2014-12-05 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare default decimal-format exponent-separator="E"; let $x := fn:format-number(12345.678, '9.9999e999') return $x |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat105[+]
X numberformat105: Created on: 2014-12-05 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare decimal-format exp-E exponent-separator="E"; let $x := fn:format-number(12345.678, '9.9999E999', 'exp-E') return $x |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat106[+]
X numberformat106: Created on: 2014-12-05 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare decimal-format exp-e exponent-separator="e"; let $x := fn:format-number(12345.678, '9.9999E999', 'exp-e') return $x |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat107[+]
X numberformat107: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(12345.678, '9.9999E999', 'BadFormat') return $x |
pass | pass | pass | pass | pass | pass |
numberformat108[+]
X numberformat108: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(12345.678, '9.99e99e99') return $x |
pass | pass | pass | pass | pass | pass |
numberformat109[+]
X numberformat109: Created on: 2014-12-05 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare decimal-format exp-bizarre exponent-separator="✐"; let $x := fn:format-number(12345.678, '9.9999✐999', 'exp-bizarre') return $x |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat110[+]
X numberformat110: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(12345.678, '9.9999e999%') return $x |
pass | pass | pass | pass | pass | pass |
numberformat111[+]
X numberformat111: Created on: 2014-12-05 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare decimal-format exp-p exponent-separator="%"; let $x := fn:format-number(12345.678, '9.9999%999', 'exp-p') return $x |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat112[+]
X numberformat112: Created on: 2014-12-05 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare decimal-format exp-p percent="!" exponent-separator="%"; let $x := fn:format-number(12345.678, '9.9999%999', 'exp-p') return $x |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat113[+]
X numberformat113: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(12345.678, '9.9999eDog') return $x |
pass | pass | pass | pass | pass | pass |
numberformat114[+]
X numberformat114: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(12345.678, '9.9999e,') return $x |
pass | pass | pass | pass | pass | pass |
numberformat115[+]
X numberformat115: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(12345, '9.9999e99') return $x |
pass | pass | pass | pass | pass | pass |
numberformat116[+]
X numberformat116: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(5, '9.9999e99') return $x |
pass | pass | pass | pass | pass | pass |
numberformat117[+]
X numberformat117: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(.05, '9.9999e99') return $x |
pass | pass | pass | pass | pass | pass |
numberformat118[+]
X numberformat118: Created on: 2014-12-05 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: let $x := fn:format-number(123.45E7, '9.9999e99') return $x |
pass | pass | pass | pass | pass | pass |
numberformat119[+]
X numberformat119: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.900001000020000345, '9.99999999999999999e99') |
pass | pass | pass | pass | pass | pass |
numberformat120[+]
X numberformat120: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(123456789012345678, '9.99999999999999999e99') |
pass | pass | pass | pass | pass | pass |
numberformat121[+]
X numberformat121: Created on: 2015-04-22 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare function local:timesTenToThe($n as xs:decimal, $exp as xs:integer) as xs:decimal { if ($exp eq 0) then $n else if ($exp gt 0) then ($n*10) => local:timesTenToThe($exp - 1) else ($n div 10) => local:timesTenToThe($exp + 1) }; fn:format-number(1 => local:timesTenToThe(5000), '9.9999e9999') |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat122[+]
X numberformat122: Created on: 2015-04-22 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare function local:timesTenToThe($n as xs:decimal, $exp as xs:integer) as xs:decimal { if ($exp eq 0) then $n else if ($exp gt 0) then ($n*10) => local:timesTenToThe($exp - 1) else ($n div 10) => local:timesTenToThe($exp + 1) }; fn:format-number(1 => local:timesTenToThe(-5000), '0.0000e0001') |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat123[+]
X numberformat123: Created on: 2015-04-22 Spec Dependencies: spec = XQ31+ XP31+ spec = XP30+ XQ30+ Test: format-number(1.0,'𐒠.𐒠e𐒠') |
pass | pass | pass | pass | pass | pass |
numberformat124[+]
X numberformat124: Created on: 2015-04-22 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare decimal-format exp-E exponent-separator="x10^"; fn:format-number(12345.678, '9.9999x10^999', 'exp-E') |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat125[+]
X numberformat125: Created on: 2015-04-22 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare decimal-format exp-E exponent-separator="e" exponent-separator="E"; fn:format-number(12345.678, '9.9999E999', 'exp-E') |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat126[+]
X numberformat126: Created on: 2015-04-22 Spec Dependencies: spec = XQ31+ spec = XP30+ XQ30+ Test: declare decimal-format exp-E exponent-separator="#"; fn:format-number(12345.678, '9.9999#999', 'exp-E') |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
numberformat129[+]
X numberformat129: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '999.99e99') |
pass | pass | pass | pass | pass | pass |
numberformat130[+]
X numberformat130: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '#99.99e99') |
pass | pass | pass | pass | pass | pass |
numberformat131[+]
X numberformat131: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '#.99e99') |
fail | pass | pass | pass | pass | pass |
numberformat132[+]
X numberformat132: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0045.234, '#.#e99') |
fail | pass | pass | pass | pass | pass |
numberformat133[+]
X numberformat133: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '.#e9') |
pass | pass | pass | pass | pass | pass |
numberformat134[+]
X numberformat134: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '.999e9') |
pass | pass | pass | pass | pass | pass |
numberformat135[+]
X numberformat135: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '#.e9') |
fail | pass | pass | pass | pass | pass |
numberformat136[+]
X numberformat136: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '9e9') |
pass | pass | pass | pass | pass | pass |
numberformat137[+]
X numberformat137: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '999.e99') |
pass | pass | pass | pass | pass | pass |
numberformat138[+]
X numberformat138: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '999e9') |
pass | pass | pass | pass | pass | pass |
numberformat139[+]
X numberformat139: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '.e99') |
pass | pass | pass | pass | pass | pass |
numberformat140[+]
X numberformat140: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(-12345.678, '999.99e99') |
pass | pass | pass | pass | pass | pass |
numberformat141[+]
X numberformat141: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.00012345678, '9.99e99') |
pass | pass | pass | pass | pass | pass |
numberformat142[+]
X numberformat142: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(-0.00012345678, '9.99e99') |
pass | pass | pass | pass | pass | pass |
numberformat143[+]
X numberformat143: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '9.9999e99end') |
pass | pass | pass | pass | pass | pass |
numberformat144[+]
X numberformat144: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '9.9999e99e') |
pass | pass | pass | pass | pass | pass |
numberformat145[+]
X numberformat145: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, '9.9999e99dog') |
pass | pass | pass | pass | pass | pass |
numberformat146[+]
X numberformat146: Created on: 2015-04-22 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(12345.678, 'end9.9999e99end') |
pass | pass | pass | pass | pass | pass |
numberformat231[+]
X numberformat231: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '#e0') |
fail | pass | pass | pass | pass | pass |
numberformat232[+]
X numberformat232: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '#e0') |
fail | pass | pass | pass | pass | pass |
numberformat233[+]
X numberformat233: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '0e0') |
pass | pass | pass | pass | pass | pass |
numberformat234[+]
X numberformat234: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '0e0') |
pass | pass | pass | pass | pass | pass |
numberformat235[+]
X numberformat235: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '.#e0') |
pass | pass | pass | pass | pass | pass |
numberformat236[+]
X numberformat236: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '.#e0') |
pass | pass | pass | pass | pass | pass |
numberformat237[+]
X numberformat237: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat238[+]
X numberformat238: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat239[+]
X numberformat239: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '#.#e0') |
fail | pass | pass | pass | pass | pass |
numberformat240[+]
X numberformat240: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '#.#e0') |
fail | pass | pass | pass | pass | pass |
numberformat241[+]
X numberformat241: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '0.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat242[+]
X numberformat242: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '0.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat243[+]
X numberformat243: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '0.#e0') |
pass | pass | pass | pass | pass | pass |
numberformat244[+]
X numberformat244: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '0.#e0') |
pass | pass | pass | pass | pass | pass |
numberformat245[+]
X numberformat245: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '#.0e0') |
fail | pass | pass | pass | pass | pass |
numberformat246[+]
X numberformat246: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '#.0e0') |
fail | pass | pass | pass | pass | pass |
numberformat247[+]
X numberformat247: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '#.e0') |
fail | pass | pass | pass | pass | pass |
numberformat248[+]
X numberformat248: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '#.e0') |
fail | pass | pass | pass | pass | pass |
numberformat249[+]
X numberformat249: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '0.e0') |
pass | pass | pass | pass | pass | pass |
numberformat250[+]
X numberformat250: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, '0.e0') |
pass | pass | pass | pass | pass | pass |
numberformat251[+]
X numberformat251: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, 'this.#e0') |
pass | pass | pass | pass | pass | pass |
numberformat252[+]
X numberformat252: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, 'this.#e0') |
pass | pass | pass | pass | pass | pass |
numberformat253[+]
X numberformat253: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, 'this.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat254[+]
X numberformat254: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(1.2, 'this.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat255[+]
X numberformat255: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.2, '000.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat261[+]
X numberformat261: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.002, '.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat262[+]
X numberformat262: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.002, '.000e0') |
pass | pass | pass | pass | pass | pass |
numberformat263[+]
X numberformat263: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.002, '#.###e0') |
fail | pass | pass | pass | pass | pass |
numberformat301[+]
X numberformat301: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.99999999, '.#e0') |
fail | pass | pass | pass | pass | pass |
numberformat302[+]
X numberformat302: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.99999999, '.0e0') |
pass | pass | pass | pass | pass | pass |
numberformat303[+]
X numberformat303: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.99999999, '#.#e0') |
pass | pass | pass | pass | pass | pass |
numberformat304[+]
X numberformat304: Created on: 2015-08-04 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ Test: fn:format-number(0.99999999, '0.0e0') |
pass | pass | pass | pass | pass | pass |