I have to round a number to its nearest least multiple of 3
For example:
For example:
n = 2939 => closest multiple of 3 is 2937
n = 3001 => closest multiple of 3 is 3000
Please suggest any commands to solve this.
I wonder if 'floor' command don't work in linux.