@a = 200
@b = 1
@c = @a / @b
@c is going to equal 200. How can I institute a max value for @c to be 100?
if @c = 99, do nothing
if @c = 100, do nothing
if @c > 100, make @c 100
In SQL, this is the LEAST function.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Enumerable#minworks: