Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTOS does work

4 REPLIES 4
Reply
Message 1 of 5
gregmcl
188 Views, 4 Replies

RTOS does work

(setq Real-Number 1.0)
(setq String-Number (rtos Real-Number 2 2)

returns "1"

I have checked UNITMODE, DIMZIN, LUNITS, and LUPREC and all are correct.

Does anyone have a reason for this ? I'm using 2006.

Thanks for any help

Cheers

Greg
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: gregmcl

Hi Greg,
in my cad it's ok
$ (setq Real-Number 1.0)
(setq String-Number (rtos Real-Number 2 2))
1.0
"1.00"
_$

Oops,your code need one ")".

wrote in message news:5495325@discussion.autodesk.com...
(setq Real-Number 1.0)
(setq String-Number (rtos Real-Number 2 2)

returns "1"

I have checked UNITMODE, DIMZIN, LUNITS, and LUPREC and all are correct.

Does anyone have a reason for this ? I'm using 2006.

Thanks for any help

Cheers

Greg
Message 3 of 5
Anonymous
in reply to: gregmcl

DIMZIN is the only variable which causes this, so double check that the
bitwise value does not have 8.
Mine is set to 1 so that 0's are not suppressed.

Jon
Message 4 of 5
gregmcl
in reply to: gregmcl

That was it, Thanks
Message 5 of 5
Anonymous
in reply to: gregmcl

No Problems. Glad I could help.
Where are you working, seeing as how you seem to be in my time zone?

Just curious.

Jon
wrote in message news:5495488@discussion.autodesk.com...
That was it, Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost