• Resolved mnlobc

    (@mnlobc)


    Hello and thank you for this plugin. It seems that number formatting does not work as expected. Not sure if this is a bug in numeral.js. When I use ‘$0,0.00’ I’d expect 123 to be formatted as $123.00. I get 123 instead, though. If I use $’0,0.00″ I get the currency indicator but the output is 123.000. Using € does not work at all. Renders the whole numeral.js implementation pretty much unusable at the moment.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ian Sadovy

    (@iansadovy)

    Hello @mnlobc,

    Thank you for reporting.
    Please try to remove quotes from the format string.
    The following format should work: $0,0.00 (demo).
    As for the € symbol, it seems a known issue in numeraljs. I will try to find a workaround.
    Also, I will remove quotes from examples inside the format popup, they are confusing.
    Please let me know if it works.

    Regards,
    Ian

    Thread Starter mnlobc

    (@mnlobc)

    Hello Ian,

    thank you for the quick response.

    Indeed, removing the quotes seems to do the trick for $. Alas, I absolutely need to format numbers to Euro and thus it’s still a no-go. I’ll keep an eye on the plugin, hoping it will get resolved in the future.

    Plugin Author Ian Sadovy

    (@iansadovy)

    @mnlobc,

    I definitely understand your problem. I will take a look at the issue as soon as possible. Please expect the fix or workaround by the end of the week. I will update you here about my findings.

    Regards,
    Ian

    • This reply was modified 7 years, 1 month ago by Ian Sadovy.
    Plugin Author Ian Sadovy

    (@iansadovy)

    Hi @mnlobc,

    I just have published a version with support for different currency symbols (demo).
    Please update the plugin and let me know if it works for you.

    Regards,
    Ian

    Plugin Author Ian Sadovy

    (@iansadovy)

    Hi @mnlobc,

    Could you please let me know if you have checked the update?
    Can I mark this ticket as resolved?

    Regards,
    Ian

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Number formatting does not work as expected’ is closed to new replies.