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