• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Very small values

Status
Not open for further replies.
Level 3
Joined
Oct 28, 2011
Messages
23
Uh, just curious.. How small can wc3 engine hold reals without rounding off??

I need to use EXCACT values such as 0.01190476(hundred millionth) and i don't mind if I need to use triggers just to obtain these values.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
0.0001 I think. Reals in WC3 are a combination of some decimal part (eithor fixed point or float) with a 32 bit integer for whole numbers.

I advise you store the number in a multiplied form (like 1190476 which is it multiplied by 10^8). You obviously adjust your formula to compensate for this.
 
Status
Not open for further replies.
Top