Money ScaledDecimal is it really *appropriate*

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

Money ScaledDecimal is it really *appropriate*

Martin J. Laubach-2
| Wonderful.  I sign up to implement this.  It will be a fun exercise.

  Just as pointer -- check what POSIX and Windows have as
properties for their currencies settings. AFAICR, there are
quite a bit more than you summarized. For example, I'm missing:

  - number of decimal places to the left for separating thousands
    (yes, there are really currencies out there where you split
    off *four* digits)
  - what to use as decimal point and what as thousand separator
    (in Europe, it's "," and ".")
  - where to put the currency sign (before or after the number)

  Probably quite a few unusual corner cases more, check it out...

        mjl

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

Re: Money ScaledDecimal is it really *appropriate*

Bert Freudenberg-3

Am 04.02.2006 um 14:36 schrieb Martin J. Laubach:

> | Wonderful.  I sign up to implement this.  It will be a fun exercise.
>
>   Just as pointer -- check what POSIX and Windows have as
> properties for their currencies settings. AFAICR, there are
> quite a bit more than you summarized. For example, I'm missing:
>
>   - number of decimal places to the left for separating thousands
>     (yes, there are really currencies out there where you split
>     off *four* digits)
>   - what to use as decimal point and what as thousand separator
>     (in Europe, it's "," and ".")
>   - where to put the currency sign (before or after the number)
>
>   Probably quite a few unusual corner cases more, check it out...

This gets increasingly off-topic, but note that recently we added a  
LocalePlugin to access OS information about the current locale.  
Perhaps currency information is included there? The image support  
code seems to be at  http://bugs.impara.de/view.php?id=1328

- Bert -

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

Re: Money ScaledDecimal is it really *appropriate*

Cees De Groot
In reply to this post by Martin J. Laubach-2
On 2/4/06, Martin J. Laubach <[hidden email]> wrote:
>  AFAICR, there are
> quite a bit more than you summarized.

Absolutely. That's why I mentioned the "hairy" bit...

>   - number of decimal places to the left for separating thousands
>     (yes, there are really currencies out there where you split
>     off *four* digits)
>   - what to use as decimal point and what as thousand separator
>     (in Europe, it's "," and ".")
>   - where to put the currency sign (before or after the number)
>
I wonder. The second one seems an localization issue. In the
Netherlands, we'll write US$3.000,00 and not US$3,000.00 ...
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside