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
If the question author tries to set the required precision for a number entry part to a negative number of decimal places or sig figs, throw an error.
The text was updated successfully, but these errors were encountered:
hey, can i contribute to this project? if yes, how and what do i need to do?
Sorry, something went wrong.
Hi, Thanks for offering. I think you just need to duplicate the test at https://github.com/numbas/Numbas/blob/master/runtime/scripts/parts/numberentry.js#L132 and throw an error when precisionType=="dp" && precision<0. See our page on contributing to Numbas for information on how to set up a development environment.
precisionType=="dp" && precision<0
add English string for negative dp error
d55d0d0
see #466
d18198f
No branches or pull requests
If the question author tries to set the required precision for a number entry part to a negative number of decimal places or sig figs, throw an error.
The text was updated successfully, but these errors were encountered: