I have a project where I have a Variable defined as a single (VariableS). This Variable is assigned a value e.g. VariableS = 32.555

Later in the project I have a variable defined as a double. (VariableD)

If a use the code VariableD = CDbl (VariableS) the resultant value of the VariableD is not 32.555 but 32.5550003051758

How can I force the VariableD to have the exact value of the original VariableS

Thank you all in advance .

Hi John,

Give it this way,

VariableD = Val(VariableC)