Introduced in release: 1.0 Component: Generic Purpose:
Truncate or round the given number (given) to the specified number of places (places) past the decimal point. Truncation or rounding is determined by the trunc_rnd_flag. For truncation the value is 0, for rounding the value is 1.
Results:
The given value is rounded or truncated to the specified number of places and returned as the value of the function.
Error Conditions:
If the result of attempting to round or truncate would cause an integer overflow, the given number will be returned unchanged.