read float in other base

Wolfgang Helbig helbig at Lehre.BA-Stuttgart.DE
Sat Apr 22 01:19:57 UTC 2006


Hi Nicolas,

You wrote some expressions containing float literals with a radix prefix and an
exponent and wondered:

>As shown above, exponent is always interpreted in base 10. why ?
Because there is no need to express it in the base specified in
the radix prefix?

>is it compatible with any other language convention ?
Is it not compatible with any other language convention ?

>(note that exponent is forbidden in VW when base is not 10, so no clue from 
>this dialect...).

But there is a clue from the Blue Book (p 20):
	"The exponent suffix includes the letter "e" followed by the exponent
	(expressed in decimal)."

Greetings
Wolfgang

--
Weniger, aber besser.




More information about the Squeak-dev mailing list