Decimal places
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Decimal places
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA

Author Message
RV10Builder



Joined: 03 Dec 2009
Posts: 1
Location: UK

Posted: Thu Dec 03, 2009 8:17 am    Post subject: Decimal places Reply with quote

Does anyone know how to round down or round up to a given number of decimal places using Autolisp. I am aware of 'Fix' but this only rounds down.

Back to top
View user's profile Send private message
CarlB



Joined: 27 Sep 2005
Posts: 121

Posted: Fri Dec 04, 2009 12:52 am    Post subject: Reply with quote

RV-
Use of 'rtos' is handy for this. It rounds off as well as converts to a string, so you need to use other functions to convert to a real (atof) or integer (atoi).
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Access Forum - Microsoft Office Forum - Electronics

Contact Us Powered by phpBB