Dim BP As Single, WVP As Single, x As Single
...
x *= (101.325 / BP) * ( BP / (BP - WVP) )
The code compiles and seems to run correctly, but is underlined with the message “Implicit Conversion from ‘Double’ to ‘Single'”
Why would this be an implicit conversion if each of the variables is cast as a Single? Is this something I should worry about or change?
101.325is aDoubleliteral.Therefore, your code is actually multiplying a
Doubleby aSingle, creating aDouble.You need to write
101.325Fto force the literal to be aSingle.