• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,258
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