mod
The mathematical function for modular arithmetic.
Parameter | Type |
---|---|
| decimal, double, integer |
| decimal, double, integer |
Returns: decimal
Example
Query:
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/> PREFIX fn: <http://data.world/function/functions#> SELECT (fn:mod(8, 3) AS ?mod) { }
Results:
mod |
---|
2 |