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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Cellier-3
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