Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IMathlib::round ( P6FLOAT  withDecimal,
P6INT32 pToInteger 
)
pure virtual

Return the closest integer to the floating point "withDecimal" parameter.

For example, round( 4.6 ) returns 5, and round( 3.2 ) returns 3.

Parameters
withDecimal[ in ] A numeric value with a value after the decimal point (e.g., 4.6)
pToInteger[ out ] Round the withDecimal number up or down to the closest integer.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgOne of the parameters is NULL.
P6R::eNotInitializedA successful call to initialize has not been done.