Is division broken in WE?

Arkan

Nobody rides for free
Reaction score
92
Look at this:

JASS:
  local real a
  local real b
  local real c

  set a = 8/50
  set b = 5
  set c = 6/3
  
  call BJDebugMsg("a: "+R2S(a))
  call BJDebugMsg("b: "+R2S(b))
  call BJDebugMsg("c: "+R2S(c))


It shows
0.000
5.000
2.000

Why does it show 0.000 instead of 0.16 ?
I never had a problem with division in WE before, this is just plain stupid...
 

Arkan

Nobody rides for free
Reaction score
92
Oh, I thought the script automatically converted 8 to 8.000 if it was a real and so on. Well that explain things, thanks.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top