[Seaside] Re: Smalltalk float to currency how to ?

Yanni Chiu yanni at rogers.com
Tue Jan 31 16:11:15 CET 2006


Dmitry Dorofeev wrote:
> Hi all,
> 
> I have Float in form:
> 12.0
> 123.3453
> etc
> and want to format it to two-digits-after-dot.
> Searched through classes but found nothing suitable except

In a 3.8 derived image, I get:

12.0 printShowingDecimalPlaces: 2. ==> '12.00'
123.3453 printShowingDecimalPlaces: 2. ==> '123.35'



More information about the Seaside mailing list