obj-c : iphone programming disabling the round off of a number
- by the1nz4ne
hi, i need to show a number to a user : 1.96666777 (timeHour)
moduloformat = [NSString stringWithFormat:@"%0.0f hours ",timeHour];
but it is rounding off the number automaticly. It gives "2" and i want to show "1"
i could use a NSrange and take the first number but i wanna know how to deal with this.
Thanks!!