jeudi 8 juin 2017

How did my function enter an if statement if it wasn't supposed to VBA?

I have a function that did something fairly odd. It entered in to an if statement despite the condition not being met for said if statement. Here is an image of the debugging screen: enter image description here

Note that 'diameter' is an input to the function ByVal as double, and that the value I'm sending in is in fact 0.0762.

Very possible it's something stupid I missed in which case sorry, but otherwise I am intrigued and would love to hear your thoughts on it either way. Thanks!

Aucun commentaire:

Enregistrer un commentaire