Need to edge out the competition for your dream job? Train for certifications today.
Public Function RoundUp001( _
ByVal dblValue As Double) _
' Rounds up dblValue to next multiplum of 0.001.
' 2002-05-21. Cactus Data ApS, CPH.
Const cdblInterval001 As Double = 0.001
Dim dblTmp As Double
' No special error handling.
On Error Resume Next
dblTmp = dblValue / cdblInterval001
dblTmp = -Int(-dblTmp)
dblValue = dblTmp * cdblInterval001
RoundUp001 = dblValue
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
This course will introduce you to C++ 11 and teach you about syntax fundamentals.