I can’t find an Fortran function that rounds a real number to a given decimal place (such as ROUND(x,y) in VB). The only way I’ve found of doing it which works but is ugly is, for the case of wanting to round to the third decimal:
dummyVar = 123.456789
dummyVar = TRUNC(dummyVar * 1000.0) /...