|
-
Oct 12th, 2003, 05:21 AM
#1
Thread Starter
Addicted Member
VAL function gives rounded integer [SOLVED]
hi
I got here a text box which hold an integer with decimals but when I try to retrieve it and convert it into integer value it will round it automatically, and I'm pissed off to fixed it even CDbl will give rounded...
here
text1.text = ".5"
b = text1.text
c = Val(b)
msgbox c '<<<will show Zero !!!!
any help is highly appreciated
S. Mohammad Najafi
Last edited by vbcodec; Oct 12th, 2003 at 12:04 PM.
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
|