Function: nval

Syntax

nval (<num1>,<num2>)

Type

numeric

Returns

The nearest multiple of one number to another.

Parameters

Examples

The following returns the value 6.

numeric n = nval(5.4,2)

The following returns the value 9.

numeric n = nval(10.4,3)

See Also

Functions:

int (numeric), nint (numeric), uint (numeric)