hxt-8.3.1: A collection of tools for processing XML with Haskell.Source codeContentsIndex
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 -> XPathFilterSource
Multiplication
xPathMod :: Op -> XPathValue -> XPathFilterSource
Modulo
xPathDiv :: Op -> XPathValue -> XPathFilterSource
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 -> XPathFilterSource

Plus and minus

1.parameter op : plus or minus operation

xPathUnary :: XPathFilterSource
Unary minus: the value NaN is not calculatable and returned unchanged, all other values can be denied.
Produced by Haddock version 2.4.2