Hello,
I am using the function CDbl() to convert a String to Double, but this is what happens:
Dim s_num as String;
Dim d_num as double;
s_num = 0.0300;
msgbox(s_num) (shows "0.0300"
d_num = CDbl(s_num)
msgbox(d_num) (shows "300"!!!!)
s_num = 0.03;
msgbox(s_num) (shows "0.03"
d_num = CDbl(s_num)
msgbox(d_num) (shows "3"!!!!)
If I try commas (in case regional configuration has something to do with it, i.e. "0,0300" it's the same.
I'm almost sure, than when I programmed it on another machine, the result was right, AM I WRONG??? IS THIS POSSIBLE???
Please, answer somethimg, even to say that this is not possible or any tips on this.
Thank you.
I am using the function CDbl() to convert a String to Double, but this is what happens:
Dim s_num as String;
Dim d_num as double;
s_num = 0.0300;
msgbox(s_num) (shows "0.0300"
d_num = CDbl(s_num)
msgbox(d_num) (shows "300"!!!!)
s_num = 0.03;
msgbox(s_num) (shows "0.03"
d_num = CDbl(s_num)
msgbox(d_num) (shows "3"!!!!)
If I try commas (in case regional configuration has something to do with it, i.e. "0,0300" it's the same.
I'm almost sure, than when I programmed it on another machine, the result was right, AM I WRONG??? IS THIS POSSIBLE???
Please, answer somethimg, even to say that this is not possible or any tips on this.
Thank you.