i need to round off some numbers to nearest quarter , with an option to round up or round down to nearest quarter
for e.g. For an array for (5,1) with following values
1373.6981385.0241394.821400.4361396.532
output for rounding up to closest 0.25 will result in
1373.751385.251395.001400.501396.75
output for rounding down to closest 0.25 will be
1373.501385.001394.751400.251396.50
I am not sure how to create such a function which gives this output, please help .
Best Answer