Sample Header Ad - 728x90

Rounding off negative decimal and positive decimal number

2 votes
1 answer
358 views
I would like to round off the below numbers to nearest wholenumber using awk command and copy it to another column say col11 and col12. can anyone help eg 1) column5,column6,,,,,column11,column12, -21733.3, -4129.327,,,,,,, output expected column5,column6,,,,,column11,column12, -21733.3, -4129.327,,,,,-21733,-4129, 2) column5,column6,,,,,column11,column12, 21733.3,4129.327,,,,,,, output expected column5,column6,,,,,column11,column12, 21733.3,4129.327,,,,,21733,4129,
Asked by user558041 (21 rep)
Jan 25, 2023, 07:22 AM
Last activity: Jan 25, 2023, 12:38 PM