Skip to main content

round

The mathematical function to round a decimal value to the nearest integer value.

Parameter

Type

x

decimal, double

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:round(8.31234, 2) AS ?round)
{
}

Run query

Results:

round

8.31