In Fortran, the number of dimensions in an array.

For example, a matrix is an array of rank 2.

A scalar is sometimes defined as an array of rank 0.