Add TO_INT_UP to round up a real and convert it to int