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

Arguments<br />

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

P must be of the same type and kind type parameter as A.<br />

Result type/<br />

type parameters<br />

Same as A.<br />

Result value<br />

If P is not 0, the value of the result is A – INT(A/P) * P. IfP=0, the result is<br />

processor-dependent.<br />

Specific forms<br />

AMOD, BMOD, DMOD, HMOD, IMOD, JMOD, KMOD, QMOD.<br />

MODULO(A, P)<br />

Description<br />

Modulo function.<br />

Class<br />

Elemental function.<br />

Arguments<br />

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

P must be of the same type and kind type parameter as A.<br />

Result type/<br />

type parameters<br />

Same as A.<br />

Result value<br />

Case 1 A is of type integer. If P is not 0, MODULO(A, P) has the value R such that A=<br />

Q * P + R,whereQ is an integer, the inequalities 0

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

Saved successfully!

Ooh no, something went wrong!