Title: Math Question
Last modified: August 21, 2016

---

# Math Question

 *  Resolved [livninctry](https://wordpress.org/support/users/livninctry/)
 * (@livninctry)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/math-question/)
 * Is there anyway o control the type of math problems that are given? This should
   be a simple math problem. I think it is a little difficult for some users to 
   do the problems. I had one math problem that had a answer that contained a non
   repeating and non terminating decimal answer. Any thoughts would be appreciated.
 * [http://wordpress.org/plugins/user-registration-aide/](http://wordpress.org/plugins/user-registration-aide/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [bnovotny](https://wordpress.org/support/users/bnovotny/)
 * (@bnovotny)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/math-question/#post-4502461)
 * The math starts on line 479 of the user-registration-aide-registrationForm.php
   file. I tried to keep it simple enough, however the random numbers sometimes 
   come up weird. You can modify the numbers and functions there. For the repeating
   decimal, it should be classified that it can be rounded up to the nearest first
   decimal, so 1.333 would be 1.3 and such.
 * If you want you can remove the division section altogether to avoid the problem
   with decimals, just change the variable $o = rand(1,4); to $o = $rand(1,3); seeing
   as 4 would create a division problem as the operator (+, -. * & /) are also random.
 *  Plugin Author [bnovotny](https://wordpress.org/support/users/bnovotny/)
 * (@bnovotny)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/math-question/#post-4502471)
 * By the way I am working on an update now and will add something so that you can
   adjust that from the admin menu for the next release instead of hacking the code,
   and will see about simplifying it some more. Thanks for the input by the way,
   appreciate it.
 *  Thread Starter [livninctry](https://wordpress.org/support/users/livninctry/)
 * (@livninctry)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/math-question/#post-4502487)
 * Thank you for the quick response…
 *  Plugin Author [bnovotny](https://wordpress.org/support/users/bnovotny/)
 * (@bnovotny)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/math-question/#post-4502596)
 * I added the options to adjust which math operators to use and made the random
   numbers smaller in the latest update so I would like mark this as resolved if
   that is okay.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Math Question’ is closed to new replies.

 * ![](https://ps.w.org/user-registration-aide/assets/icon.svg?rev=1256714)
 * [User Registration Aide](https://wordpress.org/plugins/user-registration-aide/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-registration-aide/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-registration-aide/)
 * [Active Topics](https://wordpress.org/support/plugin/user-registration-aide/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-registration-aide/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-registration-aide/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [bnovotny](https://wordpress.org/support/users/bnovotny/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/math-question/#post-4502596)
 * Status: resolved