| View previous topic :: View next topic |
| Author |
Message |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Sat Dec 04, 2004 12:51 am Post subject: Floating-Point Bug? |
|
|
Hi,
with the actual version the following code gives me a Zero instead of 0.033333
| Code: |
progressBarTotal = 100
progressBarTotal /= 3000
msgbox,%progressBarTotal%
|
Tekl |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Sat Dec 04, 2004 5:06 am Post subject: |
|
|
| Most math operations yield an integer result when given integers for the inputs. To force a floating point result, have one or more of the inputs end in point zero: progressBarTotal /= 3000.0 |
|
| Back to top |
|
 |
|