-
Notifications
You must be signed in to change notification settings - Fork 10
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
moic returns a string instead of NaN #92
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #92 +/- ##
==========================================
- Coverage 97.97% 97.52% -0.46%
==========================================
Files 4 4
Lines 198 202 +4
==========================================
+ Hits 194 197 +3
- Misses 4 5 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
It's a good idea to help users with a more informative error here! Three suggestions/comments:
|
@alecloudenback
Then even if in input someone mentioned
Then also it will return NaN only |
Hi @KuldeepBorkar, After a lot of thought and discussion here, I would favor not throwing an error or special casing the I think there are two improvements to
|
When no Positive or Negative values are provided to the function
moic
it will return a string that No Positive or Negative values are Provided instead of returningNaN