On 07 Sep 2016, at 13:37, Nicolai Hess <nicolaihess@gmail.com> wrote:Fraction>>round: numberOfWishedDecimalthis method was changed for case 19034 Improve comment of round:
"Round the decimal part of the receiver to be limited to the number of wished decimal. Only leave a fixed amount of decimal"
< expr: (1/3 round: 2) result: 0.33 >
< expr: (111/100 round: 2) result: 1.11 >
^self asFloat round: numberOfWishedDecimal
1. Do we want to allow this syntax ( I don't want)But I thinkis actually not a valid pragma expression. (Squeak compiler does not allow this).
< expr: (111/100 round: 2) result: 1.11 >