how to round numbers in r code example Example: R round float values > round(123.456,digits=2) [1] 123.46