主题:帮个忙!:怎么将double转换成string类型?
fengchenyu
[专家分:30] 发布于 2006-09-25 16:41:00
怎么将double转换成string类型?
------非常感谢!!!!
回复列表 (共4个回复)
沙发
jakyben [专家分:80] 发布于 2006-09-25 18:33:00
floattostr()
inttostr()
板凳
5cai [专家分:90] 发布于 2007-03-05 14:33:00
FormatFloat("0.00",fNum ) ;留两个小数点
3 楼
SupermanTm [专家分:130] 发布于 2007-03-13 15:39:00
Unit: System
Category
String Handling Routines (Pascal style)
Str formats a string and returns it to a variable.
procedure Str(X [: Width [: Decimals ]]; var S);
Description
The Str procedure converts X to a string representation according to the Width and Decimals formatting parameters. The effect is like a call to Write except the resulting string is stored in S instead of being written to a text file.
X is an integer-type or real-type expression. Width and Decimals are integer-type expressions. S is a string-type variable or a zero-based character array variable if extended syntax is enabled.
4 楼
hen990123 [专家分:10] 发布于 2007-03-19 21:29:00
floattostr()
我来回复