[html-formfu] Deflator/Inflator::FormatNumber

Carl Franks fireartist at gmail.com
Wed Dec 17 11:01:35 GMT 2008


2008/12/17  <onken at houseofdesign.de>:
>
> Hi Carl (and everyone else :-) ),
>
> I wrote a deflator/inflator couple for Number::Format.
> The locale can be specified as well as precision and trailing zeroes.
>
> I'd be glad if you would have a look at it and consider to add it to
> FormFu. The only disadvantage is that Number::Format fails on some systems.
> But I already contacted the author and send him a patch for the failing
> tests.

It looks good.
Though, would it make sense to try and pull the locale from
$form->languages(), or at least provide a $form->locale() method you
can get it from, so it doesn't have to be set in multiple places?
Other than that, though - nice idea.

Carl



More information about the HTML-FormFu mailing list