hxt-xpath-9.1.2.2: The XPath modules for HXT.

Safe Haskell | None
Language | Haskell98

Text.XML.HXT.XPath.XPathArithmetic

Description

The module contains arithmetic calculations according the IEEE 754 standard for plus, minus, unary minus, multiplication, modulo and division.

Synopsis

- xPathMulti :: Op -> XPathValue -> XPathFilter
- xPathMod :: Op -> XPathValue -> XPathFilter
- xPathDiv :: Op -> XPathValue -> XPathFilter
- xPathAdd :: Op -> XPathValue -> XPathFilter
- xPathUnary :: XPathFilter

# Documentation

xPathMulti :: Op -> XPathValue -> XPathFilter Source #

Multiplication

xPathMod :: Op -> XPathValue -> XPathFilter Source #

Modulo

xPathDiv :: Op -> XPathValue -> XPathFilter Source #

Division: the divison-operator is not according the IEEE 754 standard, it calculates the same as the % operator in Java and ECMAScript

xPathAdd :: Op -> XPathValue -> XPathFilter Source #

Plus and minus

1. parameter op : plus or minus operation

xPathUnary :: XPathFilter Source #

Unary minus: the value `NaN` is not calculatable and returned unchanged, all other values can be denied.