You are here: Symbol Reference > Math387 Namespace > Functions > Math387.StrToVal Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Math387.StrToVal Function

Converts string to a value.

Pascal
function StrToVal(const Source: string): double;

original string, transformed to double value.

This routine is the same as StrToFloat except that it can also handle NAN and INF values. It will work with both ',' and '.' as decimal separator, but the code will run 2x faster for the currently default decimal separator. StrToVal is used also by StrToCplx function.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!