We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the case I need to use user input, I must first check if it's a valid value before creating a new Decimal instance, or else an error is thrown.
I was expecting a static function allowing to test the validity of a string, e.g.:
Decimal.isValid(userInput)
Of course I could try/catch on an error, but an isValid static function is cleaner and simpler.
isValid
The text was updated successfully, but these errors were encountered:
Okay, I will consider it. Thanks for your input.
Sorry, something went wrong.
No branches or pull requests
In the case I need to use user input, I must first check if it's a valid value before creating a new Decimal instance, or else an error is thrown.
I was expecting a static function allowing to test the validity of a string, e.g.:
Of course I could try/catch on an error, but an
isValid
static function is cleaner and simpler.The text was updated successfully, but these errors were encountered: