- UID
- 5280
- 积分
- 9539
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-5-18
- 最后登录
- 1970-1-1
|
发表于 2016-4-23 00:08:38
|
显示全部楼层
本帖最后由 newer 于 2016-4-23 00:09 编辑
acdbRToS Global Function extern "C" int acdbRToS( ads_real val, int unit, int prec, ACHAR * str); val | Value to format | unit | Units into which the string is formatted as a valid AutoCAD LUNITS value; if -1, uses the current value of LUNITS | prec | Number of decimal places of precision to include in the string; if -1, uses the current value of the AutoCAD LUPREC system variable | str | Resulting string | Formats a floating-point value as a string.
The following table lists the valid values for the units argument.
Linear units values:
Mode value | String format | 1 | Scientific | 2 | Decimal | 3 | Engineering (feet and decimal inches) | 4 | Architectural (feet and fractional inches) | 5 | Fractional | The current value of the AutoCAD DIMZIN dimensioning variable controls how acdbRToS() writes leading or trailing zeros to str.
If acdbRToS() succeeds, it returns RTNORM; otherwise, it returns an error code.
Include File acedads.h
|
|