Skip to content

0,0.[000] format behaves differently in numeraljs and pynumeral #1

Description

@maihde

Description

The numeraljs format "0,0.[000]" will only include decimals if necessary. In pynumeral they are always returned.

What I Did

>>> pynumeral.format(1, "0,0.[000]")
'1.000'
> const numeraljs = require('numeraljs')
> numeraljs(1).format('0,0.[000]');
'1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions