in reply to Different way of rounding

Interesting problem... perhaps you could multiply the number by 1000, mod by 10, and if true, then add 10, div by 10 (get integer only), then divide by 100. Not the best of ways, but logically would seem to work....

Sample 1: 1.1213

  1. 1.1213 * 1000 = 1121.3
  2. 1121.3 % 10 = 1
  3. 1121.3 + 10 = 1131.3
  4. 1131.3 / 10 = 113
  5. 113 / 100 = 1.13

Sample 2: 234.33

  1. 234.33 * 1000 = 234330
  2. 234330 % 10 = 0
  3. 234330 / 10 = 23433
  4. 23433 / 100 = 234.33