Round function

Category: Math

Summary

Rounds using banker’s rounding.

Syntax

Returns a number rounded to a specified number of decimal places.

Example

Example ?Round(0.12335,4)
0,1234
?Round(0.12345,4)
0,1234
?Round(0.12355,4)
0,1236
?Round(0.12365,4)
0,1236

?WorksheetFunction.Round(0.12345,4)
0,1235
?WorksheetFunction.RoundUp(0.12345,4)
0,1235
?WorksheetFunction.RoundDown(0.12345,4)
0,1234

?Round(0.00005,4)
0
?WorksheetFunction.Round(0.00005,4)
0,0001
?WorksheetFunction.RoundUp(0.00005,4)
0,0001
?WorksheetFunction.RoundDown(0.00005,4)
0

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/round-function

Back to Functions