[dojo-contributors] Is there any numeric formatting?

Tom Trenka ttrenka at gmail.com
Tue Apr 25 14:10:53 EDT 2006


It does.  If we don't have it yet we should ask Bob if we can lift it.

trt

On 4/25/06, Michael Schall <mike.schall at gmail.com> wrote:
>
> MochiKit has a nice implementation for this where it has a generic
> number formatter function generator.  Give it a format and it will
> return a function that will format it as you like it...
>
> http://www.mochikit.com/doc/html/MochiKit/Format.html
>
> This seems like a good chuck of code to pull into Dojo (at least the
> concept)...
>
> On 4/25/06, Jon Sykes <jon.sykes at media-hive.com> wrote:
> > Numerical formatting could open up a can of worms from an
> > internalization stand point.
> >
> > It's amazing how many different ways you can represent something as
> > simple as:
> >
> > $1,234.56
> >
> > Once you need to work 'globally'.
> >
> > Somewhere I have an email with ALL of the possible formatting that is
> > baked into Java in a long list - it's somewhat scary.
> >
> >
> > Jon Sykes
> >
> >
> > On Apr 25, 2006, at 1:33 PM, Tom Trenka wrote:
> >
> > > I must be blind.  Have we added any kind of numeric formatting to
> > > Dojo, and if so, where is it?  I can't seem to find it anywhere,
> > > and the ability to (at least) format a float as currency would be
> > > kind of huge...
> > >
> > > trt
> > > _______________________________________________
> > > dojo-contributors mailing list
> > > dojo-contributors at dojotoolkit.org
> > > http://dojotoolkit.org/mailman/listinfo/dojo-contributors
> >
> > _______________________________________________
> > dojo-contributors mailing list
> > dojo-contributors at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-contributors
> >
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-contributors
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20060425/5b51174f/attachment.htm 


More information about the dojo-contributors mailing list