Skip to main content

mod

The mathematical function for modular arithmetic.

Parameter

Type

x

decimal, double, integer

y

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)
{
}

Run query

Results:

mod

2