Bug? Wrong value of variable

obscure

Member
Licensed User
Longtime User
Hi there!

Consider the following lines of code:
Dim subtract As Long=90*24*60*60*1000
Log(subtract)

This will output: -813934592

If I do it like this:
Dim subtract2 As Long=90*24*60*60
subtract2=subtract2*1000

I get the correct value of 7776000000.
Why is that?

regards,
obscure
 
Top