I am in the process of writing my own hatch pattern maker/editor lisp.
My current problem is the trailing 0 (zero's). I am trying to think of a way to have autolisp write the number of (to a max 4) decimal places when needed, otherwise truncate all trailing 0's.
ie.
this 0,0.0000,4.2000,12.0000,12.0000,0.0000,-4.2000,0.6000,-6.0000,0.0000,-1.2000
becomes 0,0,4.2,12,12,0,-4.2,.6,-6,0,-1.2
Any help would be appreciated.
Cheers