Negative number handling
This release adds the capability to handle negative numbers. This necessitated a change in behavior for error conditions as noted below.
Breaking changes
- Returns
NaN
for invalid inputs instead of-1
Bug fixes
- Handles negative numbers properly (fixes #3)