Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

atoi?

grantrickard
Beginner
1,234 Views
Is there a library I can import in VF that will allow me to convert characters to strings? I don't want ANSII values. I want integer values (something similar to the ATOI() function in C++).
0 Kudos
1 Reply
james1
Beginner
1,234 Views
Use an internal READ, such as

READ (string, '(i)') int

You can substitute a more appropriate format if applicable, and add error handling.

James
0 Kudos
Reply