Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expect null as zero #681

Open
MadSummer opened this issue May 25, 2020 · 1 comment · May be fixed by #747
Open

expect null as zero #681

MadSummer opened this issue May 25, 2020 · 1 comment · May be fixed by #747

Comments

@MadSummer
Copy link

i got an js error like:

Uncaught TypeError: Cannot read property 'toString' of null

use like this numeral("").divide(100)

so how can i set the value as 0 when is null like

numeral("")
numeral(null)

SMahdiFaghih added a commit to SMahdiFaghih/Numeral-js that referenced this issue Dec 13, 2020
This was referenced Dec 23, 2021
@hessamasna
Copy link

Hi,
I have added this on pr #781

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants