output integer directly, now works for all number types except the decimal type