Convert internal floats to int