Correct!
That's what OP's examples and problem statement specify, despite misuse of "rounding."
Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
- code
- verbatim error and/or warning messages
- a coherent explanation of what "doesn't work actually means.
| [reply] |
I did not understand that from the OP's examples and problem statement, but if you agree that you proposed solution is truncating the numbers, not rounding them, then it is fine for me and I also agree with you, and it is a possible solution to the OP's problem.
| [reply] |