Thread: Division / Mod
View Single Post
  #2   Spotlight this post!  
Unread 16-04-2002, 14:25
srawls's Avatar
srawls srawls is offline
Registered User
#0122 (Nasa Knights)
 
Join Date: Dec 2001
Location: Yorktown
Posts: 507
srawls is an unknown quantity at this point
Send a message via AIM to srawls
You can divide integers, it's just that the result is another integer (e.g. 3/2=1). Can you please explain what you're doing this for, however, becasue I'm having trouble seeing what you are trying to do. My initial thought is that if all you want to do is keep a value inside a range just use
myVal = myVal MIN lower_bound MAX upper_bound
But I don't know if that's what you need, so I'd appreciate it if you could clarify your question, unless by some struck of luck I just ansered it

Stephen