CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 3762 
Plex.Earth connects AutoCAD and Google Earth

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.

100% *  CAD 
12.4.2005    4976x  
Comments   Tell a friend
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 All CAD tips&tricks

Computed values in AutoCAD table cells. « | » What is the difference between .BAK, .SV$ and .AC$ backup files?

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   

Link your AutoCAD texts with Excel tables/sheets. Export. Change. Import.
Try DwgText 2015 More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.