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.

BTEST(I, POS)<br />

Description<br />

Tests a bit of an integer value.<br />

Class<br />

Elemental function.<br />

Arguments<br />

I must be of type integer.<br />

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

POS must be of type integer. It must be nonnegative and be less than<br />

BIT_SIZE(I).<br />

Result type<br />

The result is of type default logical.<br />

Result value<br />

Theresulthasthevalue.TRUE. if bit POS of I has the value 1 and has the value .FALSE. if bit<br />

POS of I has the value 0. The model for the interpretation of an integer value as a sequence of<br />

bits is described in “The Bit Model” on page 474.<br />

Specific forms<br />

BBTEST, BITEST, BJTEST, BKTEST, HTEST.<br />

CEILING(A)<br />

Description<br />

Returns the least integer greater than or equal to its argument.<br />

Class<br />

Elemental function.<br />

Argument<br />

A must be of type real.<br />

Chapter 11 497

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

Saved successfully!

Ooh no, something went wrong!