Fraction>>round: numberOfWishedDecimal
������ "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


this method was changed for case 19034 Improve comment of round:��

But I think
������ < expr: (111/100 round: 2) result: 1.11 >
is actually not a valid pragma expression. (Squeak compiler does not allow this).

1. Do we want to allow this syntax ( I don't want)
2. how to express this "example-pragma", use literal arrays instead:
���� < expr: #(1/3 round: 2) result: 0.33 >����������
or
������ <expr: #(1 #/ 3 #round: 2) result: 0.33>

nicolai

---------- Forwarded message ----------
From: Pharo Issue Tracker <do-not-reply@pharo.fogbugz.com>
Date: 2016-09-07 10:45 GMT+02:00
Subject: FogBugz (Case [Issue]19057) CI and Bugtracker - Failing test: SHParserST80Test.testNumberHierarchy
To: "nicolaihess@web.de" <nicolaihess@web.de>


avatar
Marcus Denker opened Case 19057: Failing test: SHParserST80Test.testNumberHierarchy and assigned it to Everyone:
Bug in Project:��CI and Bugtracker: 1. Pharo Image ������� You are subscribed to this case
testNumberHierarchy

is Failing
Priority Priority: 5 ��� Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo6.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz
A FogBugz case was opened by Marcus Denker. Case ID: 19057 Title: Failing test: SHParserST80Test.testNumberHierarchy Status: Work Needed Category: Bug Project: CI and Bugtracker Area: 1. Pharo Image Priority: 5 - Fix If Time Milestone: Pharo6.0: 3/31/2017 Assigned To: Everyone URL: https://pharo.fogbugz.com/f/cases/19057 testNumberHierarchy is Failing You are subscribed to this case. If you do not want to receive automatic notifications in the future, unsubscribe (https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=19057) from this case.