delphi有没有将字符‘42.23’转成实数的函数啊
谢谢 问题点数:100、回复次数:5Top
1 楼taidy()回复于 2002-05-27 09:18:03 得分 30
strtofloat()Top
2 楼zswang(伴水清清)(专家门诊清洁工)回复于 2002-05-27 09:18:33 得分 30
StrToFloat()
StrToFloatDef()
Val()Top
3 楼outer2000(天外流星)回复于 2002-05-27 09:18:54 得分 20
function StrToFloat(const S: string): Extended;
Description
Use StrToFloat to convert astring, S, to a floating-point value. S must consist of an optional sign (+ or -), a string of digits with an optional decimal point, and an optional mantissa. The mantissa consists of 'E' or 'e' followed by an optional sign (+ or -) and a whole number. Leading and trailing blanks are ignored.
The DecimalSeparator global variable defines the character that must be used as a decimal point. Thousand separators and currency symbols are not allowed in the string. If S doesn't contain a valid value, StrToFloat raises an EConvertError exception.Top
4 楼zxb2001(zxb)回复于 2002-05-27 09:19:11 得分 0
谢谢
Top
5 楼shindynj(一路奔走)回复于 2002-05-27 09:24:14 得分 20
function StrToFloat(const S: string): Extended;
把一个字符串转换成Float.Top




