Código Delphi [-] var stringValue : string; floatValue : Extended; begin // Set up the source string containing a number representation stringValue := '123.456E+002'; // Convert it to a floating point number floatValue := StrToFloat(stringValue); // And display the value ShowMessage(stringValue+' = '+FloatToStr(floatValue)); end;
var stringValue : string; floatValue : Extended; begin // Set up the source string containing a number representation stringValue := '123.456E+002'; // Convert it to a floating point number floatValue := StrToFloat(stringValue); // And display the value ShowMessage(stringValue+' = '+FloatToStr(floatValue)); end;