CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 41

Threaded View

  1. #30
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: INT Function Rounding Problems

    Yes, well it is known that the val function stops at the next nonnumerical character, which - in this case - is the comma. That's not very good, but it's a well known fact.
    What I did not know is, that it will fail at evaluating an integer to the point, when used within an expression of other numeric data types.
    Since other type conversion functions like CCur(), CInt(), CDbl() take string type arguments as well, your advice not to use Val() is not wrong, though.
    Last edited by WoF; May 27th, 2009 at 05:57 PM.

Tags for this Thread

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

Featured