• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Rounding Numbers in the WE

Status
Not open for further replies.
Level 9
Joined
Jun 18, 2004
Messages
565
Does anyone know how to return a rounded number in the WE?

I need to round any number in the hundreds down. Eg, 165 = 100, 2456 = 2400. I can't seem to find anything searching the forums, and this is pretty crucial to what I'm doing. Is there any way to round a number?

Thanks,
iron_warrior.
 
Level 24
Joined
Jun 26, 2006
Messages
3,406
This probably isn't what you're looking for, but you could do a trigger where if X is greater than/less than whatever values you want to round to the nearest hundred, you could just change it. Depending on what X is, it could be really easy or really hard to refer to, though.I'll get the conditions and what they're listed under to you in a bit.

It's its own section... the condition is Integer Comparison. Hope that helps.
 
Status
Not open for further replies.
Top