Anonymous | Login | 04-12-2021 12:41 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002187 | [Squeak] System | block | always | 11-14-05 09:22 | 12-19-05 15:51 | ||||
Reporter | pmm | View Status | public | ||||||
Assigned To | |||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.8 | ||||||
Summary | 0002187: Utilites class >> #floatPrecisionForDecimalPlaces: doesn't work for arguments bigger than 9 | ||||||||
Description |
It's obvious Utilites class >> #floatPrecisionForDecimalPlaces: works only for arguments between 0 and 9. The following code (attached) should this: <code>floatPrecisionForDecimalPlaces: places "Answer the floatPrecision that corresponds to the given number of decimal places" ^places <= 9 ifTrue: [ #(1 0.1 0.01 0.001 0.0001 0.00001 0.000001 0.0000001 0.00000001 0.000000001) at: (places + 1) ] ifFalse: [ (10 raisedTo: places negated) asFloat ] " (0 to: 12) collect: [:i | Utilities floatPrecisionForDecimalPlaces: i] "</code> |
||||||||
Additional Information | |||||||||
Attached Files |
![]() |
||||||||
|
![]() |
|
(0003242 - 66 - 78 - 202 - 202 - 202 - 202) pmm 12-09-05 11:50 |
duplicate of: http://bugs.impara.de/view.php?id=150 [^] please close |
(0003356 - 16 - 16 - 16 - 16 - 16 - 16) ducasse 12-19-05 15:51 |
duplicate of 150 |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
46 total queries executed. 34 unique queries executed. |