Hey all,
I wrote a basic lisp so that I can calculate CFM. I woudl like this to round up to the nearest 5. Ex: 31.55 will equal 35. Hope this is descriptive enough. Though I am asking about ho wto do that, any help simplifying my code would be appreciated.
Thank you all in advance,
Andre
Code:;Set CFM per Square Foot (defun c:cfmsf () (setq cfmpersqft (getreal "\enter CFM per sq ft number: ")) (princ (strcat "CFM per sq ft set to " cfmpersqft " ")) (princ)) ;Placing CFM tag (defun c:cfm (/ currlay sqft) (command "undo" "begin") (setq currlay (getvar "Clayer")) (setq sqft (getreal "\nenter room square foot: ")) (setvar "clayer" "M-QUCO-CHCK") (command ".text" pause "9" 0 (strcat (rtos (* sqft cfmpersqft)) " CFM" "")) (setvar "clayer" currlay) (command "undo" "end") (princ))