prevent float error caused by 0 value for printer