Sign in to follow this  

Simple calculating

This topic is 3310 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

First of all i would like to say Hello to all the community :) I have a rather stupid problem but still i can't find a solution to it. I have numbers from 1 to 250 and maybe beyond. I want to divide them by 5 and according to what the number is i will assign it to a new variable as it follows. If number ends on 0.2 the variable = 1, 0.4 = 2, 0.6 = 3, 0.8 = 4 and if it is a whole number the variable = 5. I hope that someone will point a solution to my not so interesting question. Best wishes Alex.

Share this post

Link to post
Share on other sites
Sign in to follow this