API Reference > Classes > Geometry Classes > OdBmGlobalMathUtils Class > OdBmGlobalMathUtils Methods > OdBmGlobalMathUtils::roundToAccuracy Method
OdBmGlobalMathUtils::roundToAccuracy Method
Syntax
C++
static double roundToAccuracy(double dValue, double dAccuracy, OdBm::RoundingMethod::Enum roundingMethod);

Rounds a number depending on the rounding method. 

param dValue [in] Input number. param dAccuracy [in] Input accuracy. param roundingMethod [in] Input rounding method. 

returns Returns rounded number.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.