I just met a really weird error: division by zero. My code doesn't involve any divisions.

I declared a double at the beginning.

Dim num as Double

Then later, the same error pops up every time I tried to compare or assign num a value:

num = 10
if num = 0.14 then...

The code runs fine except that error keeps on pops up which is really annoying.
The same code in runs without error on PC, but has errors on Mac.