Hello Friends,
Why I am not getting exact result in the following division. It is rounding off automatically. Is there any way to get the exact result or
can be set by user to get how many digits to carry after the decimal.
gawk '{
wait_ns1 = (82290 +1 )/78 # actuall result = 1055.012821
wait_ns2 = (82320 +1 )/78 # actuall result = 1055.397436
wait_ns3 = (82350 +1 )/78 # actuall result = 1055.782051
print wait_ns1;
print wait_ns2;
print wait_ns3;
} ' my_file
output:
1055.01
1055.4
1055.78
Or How to get the actuall result ,ie,
1055.012821
1055.397436
1055.782051
Thanks in advance..