Skip to main content

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

Try the query

Table 2. Results

mod

2