CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 6324

CAD tip CAD tip # 4346:

   
Question CAD 
 %  platform  category 
Q - question

Trailing zeroes are not returned from the (rtos) function.

A - answer The AutoLISP function (rtos x 2 2) returns (e.g. for x=100) the value "100" and not the requested "100.00". The same applies also for the Diesel function $(rtos,100,2,2). Similarly, values in AutoCAD Properties palette (Ctrl+1) and in AutoCAD variables show no trailing zeroes.

The reason is the DIMZIN variable setting. Its value must be lower than 8 to display decimal numbers in full precision set in Units.

ACAD
100% *  CAD 
12.4.2005    8257×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 10317:How much slower is saving DWGs to A360 cloud?
Tip 10138:Dimensioning a curve length or distance between two points on a curve.
Tip 7864:How to force AutoCAD to display 0'-0" instead of 0"?
Tip 7417:Displaying large coordinates without the scientific notation.
Tip 7392:How to measure using paper units in paper space?


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Simply link AutoCAD LT blocks to Excel table data.
Excellink LT 2006 More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist