Convert string to number (real and integer, string to number type casting).
Convert string to real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
real(kind=R8P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to real.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
real(kind=R4P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I8P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I4P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I2P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.
Convert string to integer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
String containing input number. |
||
integer(kind=I1P), | intent(in) | :: | knd |
Number kind. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
|
integer(kind=I4P), | intent(out), | optional | :: | error |
Error trapping flag: 0 no errors, >0 error occurs. |
Number returned.