[squeakland] How can I show a number with thousands seperators

Bert Freudenberg bert at freudenbergs.de
Sun Jul 8 09:02:04 EDT 2012


On 07.07.2012, at 16:09, Steve Thomas wrote:

> When I set a text's numeric value, I would like to include the thousands separator to make it easier to compare two numbers.

It's not built into Etoys.

To find the right Squeak method, open a method finder. Give it an example, e.g. "12345. '12,345'". It will look for a method with that receiver giving that result. 

(this works for methods with arguments, too. E.g. try "2. 3. 8")

- Bert -



More information about the squeakland mailing list