• 🏆 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!

convert integer variable to real variable.

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,207
native fixed IntToFixed (int x);
native int FixedToInt (fixed x);


Take your pick.

Logically...
native fixed IntToFixed (int x);
is what you want.

I am suprized you need to do this as it is a step backwards from WC3... In WC3 you could pass integers as reals with no need for conversion at all due to integers being a subset of reals. I am pretty sure galexy should support the same and will be very sad if it does not.
 
Status
Not open for further replies.
Top