27#ifndef _ODROUND_INCLUDED_
28#define _ODROUND_INCLUDED_
36 double aFloor = ::floor(a);
48 if (a >
double(LONG_MAX))
49 throw OdError(eArithmeticOverflow);
55 if (a <
double(LONG_MIN))
56 throw OdError(eArithmeticOverflow);
66 if (a >
double(LONG_MAX))
74 if (a <
double(LONG_MIN))
long OdRoundToLong(double a)
long OdTruncateToLong(double a)