| 1 |
|
| 2 |
<refentry id="strtod"> |
| 3 |
<indexterm id="Indexstrtod"><primary>strtod</primary></indexterm> |
| 4 |
<refentryinfo><title>Strings:Conversion</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>strtod</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
<refnamediv> |
| 12 |
<refname>strtod</refname> |
| 13 |
<refpurpose> |
| 14 |
Converts a string to a float (i-rate). |
| 15 |
</refpurpose> |
| 16 |
</refnamediv> |
| 17 |
|
| 18 |
<refsect1> |
| 19 |
<title>Description</title> |
| 20 |
|
| 21 |
<para> Convert a string to a floating point value. It is also possible to |
| 22 |
pass an strset index or a string p-field from the score instead of a string |
| 23 |
argument. If the string cannot be parsed as a floating point or integer number, an init or perf error occurs and the instrument is deactivated. </para> |
| 24 |
|
| 25 |
</refsect1> |
| 26 |
|
| 27 |
<refsect1> |
| 28 |
<title>Syntax</title> |
| 29 |
<synopsis>ir <command>strtod</command> Sstr</synopsis> |
| 30 |
|
| 31 |
<synopsis>ir <command>strtod</command> indx</synopsis> |
| 32 |
</refsect1> |
| 33 |
|
| 34 |
<refsect1> |
| 35 |
<title>Initialization</title> |
| 36 |
<para> |
| 37 |
<emphasis>Sstr</emphasis> -- String to convert. |
| 38 |
</para> |
| 39 |
|
| 40 |
<para> |
| 41 |
<emphasis>indx</emphasis> -- index of string set by strset |
| 42 |
</para> |
| 43 |
|
| 44 |
</refsect1> |
| 45 |
|
| 46 |
<refsect1> |
| 47 |
<title>Performance</title> |
| 48 |
<para> |
| 49 |
<emphasis>ir</emphasis> -- Value of string as float. |
| 50 |
</para> |
| 51 |
|
| 52 |
</refsect1> |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
<refsect1> |
| 71 |
<title>See Also</title> |
| 72 |
<para><link linkend="stringconvert"><citetitle></citetitle>String Conversion Opcodes</link></para> |
| 73 |
</refsect1> |
| 74 |
|
| 75 |
<refsect1> |
| 76 |
<title>Credits</title> |
| 77 |
<para> |
| 78 |
<simplelist> |
| 79 |
<member>Author: Istvan Varga</member> |
| 80 |
<member>2005</member> |
| 81 |
</simplelist> |
| 82 |
</para> |
| 83 |
</refsect1> |
| 84 |
</refentry> |