Skip to content
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

Fixing the numbers distractors #96

Closed
UO289845 opened this issue Apr 15, 2024 · 0 comments · Fixed by #70 or #103
Closed

Fixing the numbers distractors #96

UO289845 opened this issue Apr 15, 2024 · 0 comments · Fixed by #70 or #103
Assignees
Labels
enhancement New feature or request

Comments

@UO289845
Copy link
Contributor

The current method to create the wrong answers for the questions whose answers are numbers checks whether is an int or a float and does bassically the same but with integers or floats depending on which.
A possible solution could be to simply leave it using floats, and then override the method in the specific class that uses integers. This new method will take the output of the parent method, and convert the float values into integers. To avoid problems, instead of being directly converted into integers, they can be converted into Strings, which then are splitted by the decimal point, and the String that remains at the left of the point is then converted into an integer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants