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