![]() |
MKI_ConvertStringDoubleFast (Strings) New in Version 2018.0 |
www.CAD6.com |
C++ Syntaxbool MKI_ConvertStringDouble( double& f_rValue, const LPCWSTR f_pszText );
Converts a string's content into a double value, with terms like (0.5+2.0)/3 being evaluated. This command does NOT try to resolve variables, statements or special constants! To do so manually, call either MKI_ConvertVariables or MKI_ConvertVariablesEx in advance.
ParametersValue [double&] Address of variable to receive the evaluated double value. Text [const LPCWSTR] Text containing the double value to be converted. This text may either include a single numeric value or a complete term like (0.5+2.0)/3. For a description of the term syntax see Mathematical Terms.
Return ValueReturns true if successful, false if not.
CommentThis procedure will allow the full possible double value range. The assumed default units are [mm] for lengths and [deg] for angles.
The term evaluation is limited to 25 bracket levels and 250 elements per bracket level. For more complex calculations, use the slower MKI_ConvertStringDouble instead.
|
CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH