Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to force decimal places for strings

1 view
Skip to first unread message

classix

unread,
Jun 29, 2009, 3:24:39 AM6/29/09
to
Hi
I wrote a lisp routine to get the area of a polyline in autocad placed
into an attribute. I use rtos to get decimal places rounded to 1,2,3
or 4 decimals. Everything works fine exept for strings ending with
zero.
Is it possible to force a string to decimal places? e.g 4.00 instead
of 4
Any suggestions welcome.
Marcus

P.C.

unread,
Jun 29, 2009, 4:36:11 PM6/29/09
to

Has you tried Strcat the ".00 ", Rtos allready deliver a string.

classix

unread,
Jun 29, 2009, 5:38:37 PM6/29/09
to

That would not work for strings with decimal places (e.g. 12.51)

0 new messages