This one's got me stumped. I'm trying to do a simple multiplication and store it in my double data type variable. (I didn't just store the number because this is a conversion factor and I want others in my work group to be able to see where the conversion factor came from if they want to trace it out.)
3600*100 = 360000, well within the numeric range of a double datatype. But for some reason my code just stops dead in it's tracks when it gets to this line.
However, if I assign 3600 to the variable, then multiply it by 100, there is no problem and the code continues running fine.
What the heck is going on here???
-JTBorton
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]
Code:
Dim CFactor As Double
CFactor = 3600 * 100
3600*100 = 360000, well within the numeric range of a double datatype. But for some reason my code just stops dead in it's tracks when it gets to this line.
However, if I assign 3600 to the variable, then multiply it by 100, there is no problem and the code continues running fine.
Code:
Dim CFactor As Double
CFactor = 3600
CFactor = CFactor * 100
What the heck is going on here???
-JTBorton
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]