Generic string to number converter.
Converts string to 2-byte integer.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Input. |
||
| integer(kind=i2), | intent(out) | :: | value |
Output. |
||
| integer, | intent(out), | optional | :: | error |
Error code. |
Converts string to 4-byte integer.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Input. |
||
| integer(kind=i4), | intent(out) | :: | value |
Output. |
||
| integer, | intent(out), | optional | :: | error |
Error code. |
Converts string to 8-byte integer.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Input. |
||
| integer(kind=i8), | intent(out) | :: | value |
Output. |
||
| integer, | intent(out), | optional | :: | error |
Error code. |
Converts string to 4-byte real.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Input. |
||
| real(kind=r4), | intent(out) | :: | value |
Output. |
||
| integer, | intent(out), | optional | :: | error |
Error code. |
Converts string to 8-byte real.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Input. |
||
| real(kind=r8), | intent(out) | :: | value |
Output. |
||
| integer, | intent(out), | optional | :: | error |
Error code. |