ScaledDecimal can read in base 16 but cannot print in base 16

nicolas cellier ncellier at ifrance.com
Tue Sep 25 00:21:06 UTC 2007


This is at mantis http://bugs.squeak.org/view.php?id=6696

The intention of the ScaledDecimal class is to print a fixed number of 
digits in base 10 after the decimal point (as it obviously sounds for a 
latin, both ScaledDecimal and decimal point were originally intended for 
base 10).

What would it mean in another base? Should it print with same number of 
digits, or with a number of digits leading to equivalent precision?
Would a self shouldNotImplement be prefered?

On the other hand, different radix are allowed on input as 16r14.0s1...
So what?
Pushing this logic, should the radix used to input the number be an 
instVar? (meaning this number keep n digits after the "decimal" point in 
base r)

Nicolas




More information about the Squeak-dev mailing list