Fixed the percentage display

fixed the percentage display when it is positive. parse the float
number and check if it is larger/less than 0, instead of check the sign
of the number.