how to force decimal places for strings Optionen

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
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
Maybe I don't understand the problem, but what do you get when you enter (rtos 4 2 2) at the command line?

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.