[Seaside] Re: Smalltalk float to currency how to ?
dima-sender-3c337a at yasp.com
Thu Feb 2 14:42:06 CET 2006
Thanks for tip, it is very helpful for a newbie like me.
Also, isn't it boring to see a list of suggestions for selector name
when you type in your implementation of renderContentOn: something like
self renderConfirmationOn: html.
and save changes ?
I'd like Squeak to create a missed selector for me and open it for edit (if save successful).
Now I just accept my choice (click on renderConfirmationOn: in popup menu)
select 'renderConfirmationOn: html' with a mouse + Alt+C click, Alt+V
and only after that I can edit selector body.
I hope the practical benefit of this feature is enough to excite someone :-)
David T. Lewis wrote:
> in Wed, Feb 01, 2006 at 02:51:42PM +0300, Dmitry Dorofeev wrote:
>>this one looks practical.
>>I am sad there is no Money in Squeak though...
> Don't be sad, there is ScaledDecimal in Squeak :)
> Float is *not* appropriate for financial calculations, but
> ScaledDecimal should be OK. And #printShowingDecimalPlaces: will
> work with ScaledDecimal also:
> 123.3453 asScaledDecimal printShowingDecimalPlaces: 2. ==> '123.35'
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside