fixed float truncation and added percent number feature