equal
deleted
inserted
replaced
1052 "I am a number, so return myself" |
1052 "I am a number, so return myself" |
1053 |
1053 |
1054 ^ self. |
1054 ^ self. |
1055 ! |
1055 ! |
1056 |
1056 |
1057 asPercentFrom:hundredPercent |
1057 asPercentFrom:fullAmount |
1058 "how many percent is the receiver of the argument" |
1058 "what is the percentage |
|
1059 taking the receiver's value from the argument" |
1059 |
1060 |
1060 ^ (self / hundredPercent) * 100. |
1061 ^ (self / fullAmount) * 100. |
1061 |
1062 |
1062 " |
1063 " |
1063 20 asPercentFrom:100 |
1064 20 asPercentFrom:100 |
1064 (10 asPercentFrom:156) asFixedPoint:2 |
1065 (10 asPercentFrom:156) asFixedPoint:2 |
|
1066 (15.6 asPercentFrom:156) asFixedPoint:2 |
1065 " |
1067 " |
1066 ! |
1068 ! |
1067 |
1069 |
1068 asPoint |
1070 asPoint |
1069 "return a new Point with the receiver as all coordinates; |
1071 "return a new Point with the receiver as all coordinates; |