Don't display after the decimal point

We use '%f' instead of '%g'. '%g' uses scientific notation(like 1.23e10)
if value is large for example 2^31. We need only integer part.
Add signed 'long' max test