equal
deleted
inserted
replaced
205 ! ! |
205 ! ! |
206 |
206 |
207 !MeasurementValue methodsFor:'coercing & converting'! |
207 !MeasurementValue methodsFor:'coercing & converting'! |
208 |
208 |
209 +/- error |
209 +/- error |
210 "return a MeasurementValue with the given error." |
210 "return a MeasurementValue with a given error." |
211 |
211 |
212 "/ what should I do here - take the new error, |
212 "/ what should I do here - take the new error, |
213 "/ or multiply them ???? |
213 "/ or multiply them ???? |
214 self error. |
214 self error. |
215 |
215 |
216 minValue := value - error. |
216 minValue := value - error. |
217 maxValue := value + error. |
217 maxValue := value + error. |
|
218 |
|
219 "Modified (comment): / 14-02-2012 / 14:17:39 / cg" |
218 ! |
220 ! |
219 |
221 |
220 coerce:aNumber |
222 coerce:aNumber |
221 "convert the argument aNumber into an instance of the receivers class and return it." |
223 "convert the argument aNumber into an instance of the receivers class and return it." |
222 |
224 |
311 ! ! |
313 ! ! |
312 |
314 |
313 !MeasurementValue class methodsFor:'documentation'! |
315 !MeasurementValue class methodsFor:'documentation'! |
314 |
316 |
315 version |
317 version |
316 ^ '$Header: /cvs/stx/stx/libbasic/MeasurementValue.st,v 1.10 2009/05/26 06:37:29 cg Exp $' |
318 ^ '$Header: /cvs/stx/stx/libbasic/MeasurementValue.st,v 1.11 2012/02/14 13:22:03 cg Exp $' |
317 ! |
319 ! |
318 |
320 |
319 version_SVN |
321 version_SVN |
320 ^ '$Id: MeasurementValue.st 10761 2012-01-19 11:46:00Z vranyj1 $' |
322 ^ '$Id: MeasurementValue.st 10779 2012-02-14 22:03:08Z vranyj1 $' |
321 ! ! |
323 ! ! |
322 |
324 |
323 |
325 |
324 |
326 |
|
327 |