1,511 questions
Check an example:
Dim x As Double
x = 4.88
Dim result As Integer
result = WorksheetFunction.Floor(x, 1) ' result: 4
See also the Floor_Math and Floor_Precise functions in documentation.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hello all,
i want to round numbers down with excell VBA. For example, if number is 4.88, result must be 4.
how can i do that?
thanks
Check an example:
Dim x As Double
x = 4.88
Dim result As Integer
result = WorksheetFunction.Floor(x, 1) ' result: 4
See also the Floor_Math and Floor_Precise functions in documentation.