File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libxml2 / result / XPath / expr / functions
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:38:02 2012 UTC (12 years, 8 months ago) by misho
Branches: libxml2, MAIN
CVS tags: v2_9_1p0, v2_9_1, v2_8_0p0, v2_8_0, v2_7_8, HEAD
libxml2


========================
Expression: true()
Object is a Boolean : true

========================
Expression: false()
Object is a Boolean : false

========================
Expression: number("1.5")
Object is a number : 1.5

========================
Expression: number('abc')
Object is a number : NaN

========================
Expression: -number('abc')
Object is a number : NaN

========================
Expression: floor(0.1)
Object is a number : 0

========================
Expression: floor(-0.1)
Object is a number : -1

========================
Expression: floor(-0)
Object is a number : 0

========================
Expression: floor(0)
Object is a number : 0

========================
Expression: floor(5.2)
Object is a number : 5

========================
Expression: floor(-5.2)
Object is a number : -6

========================
Expression: ceiling(0.1)
Object is a number : 1

========================
Expression: ceiling(-0.1)
Object is a number : 0

========================
Expression: ceiling(-0)
Object is a number : 0

========================
Expression: ceiling(0)
Object is a number : 0

========================
Expression: ceiling(5.2)
Object is a number : 6

========================
Expression: ceiling(-5.2)
Object is a number : -5

========================
Expression: round(0.1)
Object is a number : 0

========================
Expression: round(5.2)
Object is a number : 5

========================
Expression: round(5.5)
Object is a number : 6

========================
Expression: round(5.6)
Object is a number : 6

========================
Expression: round(-0.1)
Object is a number : 0

========================
Expression: round(-5.2)
Object is a number : -5

========================
Expression: round(-5.5)
Object is a number : -5

========================
Expression: round(-5.6)
Object is a number : -6

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>