Results 1 to 8 of 8

Thread: VAL function gives rounded integer [SOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Posts
    160

    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
  •  



Click Here to Expand Forum to Full Width