In linux bash, I want to get the next integer for a given number only if it is a floating point number. I tried with
count=$((${count%.*} + 1));
But with the above code, all the time (even if the number is not floating point), it is giving next integer.
Expected result :
345.56 => 346
345.12 => 346
345 => 345
Can anyone help me to find the solution?
Thanks in advance.