fix possible overflow (printing float)