Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

atoi?

grantrickard
Beginner
1,159 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,159 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