Author Topic: Adding Numbers  (Read 8141 times)

0 Members and 1 Guest are viewing this topic.

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Adding Numbers
« Reply #30 on: August 24, 2015, 12:04:16 PM »
Admittedly I haven't thoroughly read the entire thread, but where the 'che_str2num' function is concerned, perhaps my Parse Numbers function may be of help?

Ok, but your code doesn't seem to work with the string "test .100 test", it returns 100 instead of .100. In all fairness my routine presently crashes with this, but I am working on a fix.

But ".100" is not a valid number as far as AutoLISP is concerned.
Right, but it is how it is sometimes (rarely though) written in some files we get and need to use this routine on, which is why I had to find a way to get around this.