round
The mathematical function to round a decimal value to the nearest integer value.
Returns: decimal
Table 1.
Parameter | Type |
---|---|
x | decimal, double |
Example
Query:
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/> PREFIX fn: <http://data.world/function/functions#> SELECT (fn:round(8.31234, 2) AS ?round) { }
Table 2. Results
round |
---|
8.31 |