HRESULT VarR8Round ( double dblIn, int nDig, double* pDblOut )
Round a VT_R8 to a given number of decimal points.
|nDig||[In]||Number of decimal points to round to.|
|pDblOut||[Out]||Destination for rounded number.|
Success: S_OK. pDblOut is rounded to nDig digits.
Failure: E_INVALIDARG, if cDecimals is less than 0.
The native version of this function rounds using the internal binary representation of the number. Wine uses the dutch rounding convention, so therefore small differences can occur in the value returned. MSDN says that you should use your own rounding function if you want rounding to be predictable in your application.
Declared in "oleauto.h". https://source.winehq.org/source/include/oleauto.h
Implemented in "dlls/oleaut32/vartype.c". https://source.winehq.org/source/dlls/oleaut32/vartype.c
Debug channel "variant".
Copyright © 2021 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jun 2021.