[wp-polyglots] decimal number representation problem

Nikolay Bachiyski nb at nikolay.bg
Wed Aug 5 17:21:27 UTC 2009


On Wed, Aug 5, 2009 at 20:14, Jovan Kostovski<chombium at gmail.com> wrote:
> ...
> The function number_format_i18n should be patched to check if the
> number is float before converting it
> to string with number_format.
>
> Are there are any floating point numbers which are formated with this function?
> Is it safe to set number_format_decimals = 0 and loose all the
> floating point numbers?

In practice this function is called with integers only, so it is safe to use 0.

You are right that the function is doing the wrong thing. Could you
open a trac ticket and put in the i18n component?

Happy translating,
Nikolay.


More information about the wp-polyglots mailing list