numeral.validate doesn't work on negative numbers
See original GitHub issuenumeral.validate("-1234") returns false
Issue Analytics
- State:
- Created 9 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Validate Negative Number - javascript - Stack Overflow
It will be evaluated by JavaScript by first attempting to convert the left hand side to a number value. Further details can be...
Read more >negative number validation - Laracasts
i already tried numeric and integer for validation but how can i validate that the input field to accept only positive number?
Read more >Python: Check if a number is positive, negative or zero
Python Exercises, Practice and Solution: Write a Python program to check if a number is positive, negative or zero.
Read more >Python program to count positive and negative numbers in a list
Example #1: Count positive and negative numbers from the given list using for loop Iterate each element in the list using for loop...
Read more >Math.sign: How to Check if a Number is Positive or Negative in ...
A common gotcha is thinking that Math.sign return the converted argument value. Math.sign returns only the sign of a number. It doesn't return...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Bump as well. It would be really nice to have a validate function that worked with negatives.
Normally I don’t like to “bump” issue because it’s just noise but it’s been over 2 years on this one. Thanks.