Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
d_trunc_rnd

d_trunc_rnd (routine)

Truncate or round a given double number

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.

Last Mod Date: 09/19/1991© 2001 TIPS, Inc.Doc Version: 5.0