Hi,

I have a textbox control that contains the text "1.73205080756888" (sqrt(3)), I want to convert that to a double such that it's equal to the square root of 3 to 15 places.

Code:
dim x as double, y as double, z as variant

z = sqrt(3)
textbox.text = z
x = sqrt(3)
y = Cdbl(textbox.text)
debug.print x - y
The result is -2.88657986402541E-15 not 0

What am I doing wrong?