C++
ACCORE_PORT int acdbAngToS( double val, AcString & sOut, int unit = -1, int prec = -1 );
File
acedads.h
Description
Formats an angle into a string.
The value to format should correspond to values allowed for the AutoCAD system variable AUNITS, which are described in acdbAngToF().
The current value of the AutoCAD dimensioning variable DIMZIN controls how acdbAngToS() writes leading or trailing zeros to str. See the AutoCAD User's Guide for possible values of DIMZIN.
On success returns RTNORM, otherwise returns an error code.
Parameters
Parameters | Description |
---|---|
val | Angle to be converted |
sOut | Output string of the converted angle |
unit | Units into which the angle is formatted; if -1, uses the current value of AUNITS |
prec | Number of decimal places of precision to include in the string; if -1 uses the current value of AUPREC |