why it is not 1000

Discussion in 'AutoCAD' started by youngman, Jul 2, 2004.

  1. youngman

    youngman Guest

    hi,

    i drew a line ,the length of which is 1000.
    but when i msgbox the length of the line in vba,

    the result is not 1000,it may be1000.000002.

    why

    thanks
     
    youngman, Jul 2, 2004
    #1
  2. youngman

    manoj_vest Guest

    It is not the problem of AutoCAD VBA but is the way a double or float variable are stored in memory. So for the comparision purpose you cannot depend on the exact if the data type is double or float.

    Manoj
     
    manoj_vest, Jul 2, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.