pascal的数据类型转换函数

来源:百度知道 编辑:UC知道 时间:2024/05/12 06:14:22
有这样函数吗?

IntToStr function 整型->字符串型
函数原型:
function IntToStr(Value: Integer): string; overload;
function IntToStr(Value: Int64): string; overload;
StrToBool function 字符串型->布尔型
函数原型:
function StrToBool(const S: string): Boolean;
StrToDate function 字符串型->日期时间型
函数原型:
function StrToDate(const S: string): TDateTime; overload;
function StrToDate(const S: string; const FormatSettings: TFormatSettings): TDateTime;
StrToFloat function 字符串型->浮点型
函数原型:
function StrToFloat(const S: string): Extended; overload;
function StrToFloat(const S: string; const FormatSettings: TFormatSettings): Extended;
StrToInt function 字符串型->整型
函数原型:
function StrToInt(const S: string): Integer;
FloatToStr function 浮点型->字符串型
函数原型:
function FloatToStr(Value: Extended): string; overload;
function FloatToStr(Value: Extended; const FormatSettings: TFormatSettings): string;
只列出了部分常