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 />

Result type/<br />

type parameters<br />

Default logical.<br />

Result value<br />

If the strings are of unequal length, the comparison is made as if the shorter string were<br />

extended on the right with blanks to the length of the longer string.<br />

If either string contains a character not in the ASCII character set, the result is processor<br />

dependent.<br />

The result is .TRUE. if the strings are equal or if STRING_A follows STRING_B in the ASCII<br />

collating sequence; otherwise, the result is .FALSE. Note that the result is .TRUE. if both<br />

STRING_A and STRING_B areofzerolength.<br />

LGT(STRING_A, STRING_B)<br />

Description<br />

Tests whether a string is lexically greater than another string, based on the ASCII collating<br />

sequence.<br />

Class<br />

Elemental function.<br />

Arguments<br />

STRING_A must be of type default character.<br />

STRING_B must be of type default character.<br />

Result type/<br />

type parameters<br />

Default logical.<br />

Result value<br />

If the strings are of unequal length, the comparison is made as if the shorter string were<br />

extended on the right with blanks to the length of the longer string.<br />

If either string contains a character not in the ASCII character set, the result is<br />

processor-dependent.<br />

546<br />

Chapter 11

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

Saved successfully!

Ooh no, something went wrong!