+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 11 to 13 of 13

Thread: Any reason I cannot get correct math?

  1. #11
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,680
    Blog Entries
    57

    Re: Any reason I cannot get correct math?

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

  2. #12
    Newbie Subgenius is an unknown quantity at this point
    Join Date
    Nov 2008
    Age
    28
    Posts
    7

    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 Any reason I cannot get correct math?-0.38.jpg  

  3. #13
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,680
    Blog Entries
    57

    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.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread
Page 2 of 2
FirstFirst 1 2

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Simple Math
    By Egz0N in forum The Lounge
    Replies: 39
    Last Post: 11-01-2008, 09:19 AM
  2. Help! Rlink32 Error
    By Sparky in forum Pascal/Delphi
    Replies: 6
    Last Post: 10-16-2008, 10:31 AM
  3. Is my recursion correct?
    By Gear2d in forum C and C++
    Replies: 4
    Last Post: 09-19-2008, 01:56 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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