Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

cdfParseFloatString

cdfParseFloatString( 
t_string
)
=> nil / d_value / t_string

Description

Uses the standard strtod (string to double) function to parse the input string. When the input string contains trailing non-numerical characters, the fragment of the string is compared against a supported set of scale factor designators.

Arguments

t_string

Specifies the string to be parsed.

Value Returned

nil

When the input string cannot be parsed as a float value or without a valid scale factor, as shown below:

cdfParseFloatString("1g") => nil

d_value

Specifies that the input string can be parsed as a float value with or without a valid scale factor, as shown below:

cdfParseFloatString("1.0") => 1.0
cdfParseFloatString("1.0u") => 1e-06

t_string

Specifies that the input string does not contain a valid numerical representation for a float value. For example, the input string starting with a non-digit character as shown below:

cdfParseFloatString("abcd") => "abcd"

Related Topics

NFET Examples


Return to top
 ⠀
X