02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

BACK (optional) must be of type logical.<br />

Result type/<br />

type parameters<br />

Default integer.<br />

Result value<br />

Case 1 If BACK is absent or present with the value .FALSE., the result is the<br />

minimum positive value of I such that STRING(I:I+LEN(SUBSTRING)–<br />

1) = SUBSTRING orzeroifthereisnosuchvalue.<br />

530<br />

Zero is returned if LEN(STRING) < LEN(SUBSTRING) and one is returned if<br />

LEN(SUBSTRING) =0.<br />

Case 2 If BACK is present with the value .TRUE., the result is the maximum value of<br />

I less than or equal to LEN(STRING) – LEN(SUBSTRING) +1suchthat<br />

STRING(I : I + LEN(SUBSTRING) – 1) = SUBSTRING or zero if there is no<br />

such value.<br />

Specific forms<br />

KINDEX.<br />

INT(A, KIND)<br />

Optional argument<br />

KIND<br />

Description<br />

Convert to integer type.<br />

Class<br />

Elemental function.<br />

Arguments<br />

Zero is returned if LEN(STRING) < LEN(SUBSTRING) and LEN(STRING) +1is<br />

returned if LEN(SUBSTRING) =0.<br />

A must be of type integer, real, or complex.<br />

Chapter 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!