Results 1 to 3 of 3

Thread: math in strings

  1. #1
    Guest

    Question

    i know you can do math in strings like int() format() and stuff like that..
    what other string functions are there?
    how do i get a string to show insted of 14567.166666666666
    only 14567.16 or 1.66 (and not with [format #####.##])

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    If you have VB6, use the Round() function, i.e.
    Code:
        nRounded = Round(14567.166666666666, 2)

  3. #3

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