read float into integer