mod
The mathematical function for modular arithmetic.
Returns: decimal
Table 1.
Parameter | Type |
---|---|
x | decimal, double, integer |
y | decimal, double, integer |
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) { }
Table 2. Results
mod |
---|
2 |