double
Convert string to double precision value
Syntax
Description
converts
the text in string X
= double(str
)str
to a double-precision value.
str
contains text that represents a number. Text that represents a number
can contain:
Digits
A decimal point
A leading
+
or-
signAn
e
preceding a power of 10 scale factor
If double
cannot convert the text to a number, it returns a
NaN
value.
Note
Only Stateflow® charts that use MATLAB® as the action language support the double
operator.
Examples
Limitations
This operator does not support structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.