Please stick to the rules (e.g. use code tags), and be careful and consistent when presentig your problem (e.g. df -h in the title while df -BG in the post).
For your problem, none of the two, be it df -h or df -BG , is the option of choice, as the results displayed may suffer from improper rounding effects, and you always ask yourself are those units for 2^30 or 1E9 multipliers. Use blocks or bytes instead, and calculate to taste.
To remove the G character, use awk 's sub() function for every field that it applies to, e.g. sub (/G/, "", $3) .
If using df -B1 , try int($3/2^30+.5)