API Reference > Classes > Geometry Classes > OdBmGlobalMathUtils Class > OdBmGlobalMathUtils Methods > OdBmGlobalMathUtils::roundToAccuracy Method
OdBmGlobalMathUtils::roundToAccuracy Method
Syntax
C++
static double roundToAccuracy(const double dValue, const double dAccuracy, const OdBm::RoundingMethod::Enum roundingMethod, const double tol = 1.e-10);

Rounds a number depending on the rounding method. 

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

returns Returns rounded number.

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