|
-
Aug 2nd, 2004, 03:25 AM
#1
Thread Starter
Hyperactive Member
Cdbl() bug?
Hi there...
I've recently tried to convert a string into a double, using Cdbl(), however I think there is a bug in VB6 Pro...
Here's what I get:
dim A as string
dim B as double
A="123.45"
if I use it this way,
B= cdbl(A)
I get: B=12345 (Wrong!!!)
If I use this way,
B= cdbl(123.45)
I get: B=123.45 (Correct!!)
Does anybody else had this problem?
thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|