Closed Thread
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Any reason I cannot get correct math?

  1. #11
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: Any reason I cannot get correct math?

    strings have a .format property. You MUST use it!
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #12
    Subgenius is offline Newbie
    Join Date
    Nov 2008
    Posts
    7
    Rep Power
    0

    Red face Re: Any reason I cannot get correct math?

    Format what other than the memory entries? In this picture attached I have tried to reformat to be integer, and it gives result of .3799999999999999 which should say 0.38 but the equation should put this number in the lots text box.

    -Brian
    Attached Thumbnails Attached Thumbnails Any reason I cannot get correct math?-0.38.jpg  

  4. #13
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: Any reason I cannot get correct math?

    You probably have to apply the format as part of assigning the float to the textbox. Since I am not a VB programmer, I will wait for some of the others to add their feedback. Based on a google search, it appears that strings have a format method.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SEO For a Different Reason
    By Hunter100 in forum Website Design
    Replies: 5
    Last Post: 05-25-2011, 03:50 AM
  2. the reason for errors in this simple read function
    By jackson6612 in forum C and C++
    Replies: 3
    Last Post: 05-13-2011, 02:53 PM
  3. Replies: 31
    Last Post: 01-06-2011, 05:08 PM
  4. INHERITANCE: reason behind that??
    By himanshu in forum Java Help
    Replies: 3
    Last Post: 01-17-2010, 09:15 AM
  5. SnowFlakes floating up, for some reason
    By Logan in forum JavaScript and CSS
    Replies: 10
    Last Post: 01-18-2009, 04:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts