I\'m looking for a method to cast a string to an int in awk. I have the following which appears to be doing a string comparison
(note: field
You can just use +0. say variable v is your percentage value.
v
$ awk -v v="80.1%" 'BEGIN{print v+0.1}' 80.2
You do not have to get rid of the % sign.
%