Can someone please explain the term:
positive 0
???
Thanks in advance!
|
|
|
Can someone please explain the term:
positive 0
???
Thanks in advance!
I haven't seen that before. If you posted the code causing the error that might help us.
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
(rtos(setq tex 2.0)2 2) only returns 2 on my system, so you cant get a substring of "2" starting at the -3 character.
If you want to use this function, I would suggest adding a check that the string length is longer than 4.
Code:(if (>= 4 (strlen tex)) (setq tex (substr tex (- (strlen tex) 4))) )
currently set to not display leading or trailing zeros (12) that is good information to help me out with some of my programs. That also leaves a valid point for the OP's question, a check should be made ahead of time to make sure that zeros are not suppressed on a users system when the command is run.