Is there a standard way to render the number 3000 as 3, 000 ?

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

Is there a standard way to render the number 3000 as 3, 000 ?

Paul DeBruicker
And other larger ints and floats?



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Is there a standard way to render the number 3000 as 3, 000 ?

Hannes Hirzel
Maybe the package mentioned in the answer to the question here

https://stackoverflow.com/questions/36480249/how-to-print-a-number-with-number-of-fixed-characters-in-smalltalk-pharo

is of help.

On 9/14/17, PAUL DEBRUICKER <[hidden email]> wrote:
> And other larger ints and floats?
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
cbc
Reply | Threaded
Open this post in threaded view
|

Re: Is there a standard way to render the number 3000 as 3, 000 ?

cbc
In reply to this post by Paul DeBruicker
Maybe #asStringWithCommas ?
works for integers (not floats to my knowledge)

On Thu, Sep 14, 2017 at 12:50 PM, PAUL DEBRUICKER <[hidden email]> wrote:
And other larger ints and floats?



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Is there a standard way to render the number 3000 as 3, 000 ?

Gabriel Cotelli
In reply to this post by Paul DeBruicker
GRNumberPrinter new
  separator: $, ;
  print: 3000

?

On Thu, Sep 14, 2017 at 4:50 PM, PAUL DEBRUICKER <[hidden email]> wrote:
And other larger ints and floats?



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--


Gabriel O. Cotelli
Desarrollo y Tecnología
Mercap
Tel: +54 (011) 5352.2372 al 74
http://www.mercapsoftware.com
This message is confidential. It may also contain information that is privileged or otherwise legally exempt from disclosure. If you have received it by mistake please let us know by e-mail immediately and delete it from your system; also you shouldn't copy the message nor disclose its contents to anyone. Thanks.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Is there a standard way to render the number 3000 as 3, 000 ?

Philippe Marschall
On Thu, Sep 14, 2017 at 11:17 PM, Gabriel Cotelli
<[hidden email]> wrote:
>
> GRNumberPrinter new
>   separator: $, ;
>   print: 3000

+1
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Is there a standard way to render the number 3000 as 3, 000 ?

Mariano Martinez Peck


On Sat, Sep 16, 2017 at 1:19 PM, Philippe Marschall <[hidden email]> wrote:
On Thu, Sep 14, 2017 at 11:17 PM, Gabriel Cotelli
<[hidden email]> wrote:
>
> GRNumberPrinter new
>   separator: $, ;
>   print: 3000

+1


+1. We use this one too. 


--

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside