Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fortran dim(x,y), to what end?

In Fortran dim(x,y) returns the difference x-y if the result is positive; otherwise returns zero. What was it intended to be used for? What is the meaning behind the name dim?

like image 863
CW Holeman II Avatar asked Aug 31 '25 10:08

CW Holeman II


1 Answers

Presumably it comes from dimension, i.e., the length, width, height of something. Since none of these values can be negative it's calculated as the positive difference.

like image 77
tvanfosson Avatar answered Sep 03 '25 06:09

tvanfosson