Click or drag to resize

FunctionRound Method (IExpression, IExpression)

Creates a function that will round the given expression to the number of digits indicated in question

Namespace:  Couchbase.Lite.Query
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax
C#
public static IExpression Round(
	IExpression expression,
	IExpression digits
)

Parameters

expression
Type: Couchbase.Lite.QueryIExpression
The numeric expression to take data from when calculating the result
digits
Type: Couchbase.Lite.QueryIExpression
The number of digits to round to

Return Value

Type: IExpression
A function that will round the expression (using midpoint rounding)
See Also