Result ceiling a kind arguments.
Fortran round floor.
9 109 floor integer floor function description.
That is it rounds the input to the nearest whole number.
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.
Fortran 95 and later class.
Also missing values are ignored.
In addition ceiling floor and modulo have been added to fortran 90.
It differs in that it allows the user to specify the type of the return values.
I can t find an fortran function that rounds a real number to a given decimal place such as round x y in vb.
Dummyvar 123 456789 dummyvar trunc dummyvar 1000 0 1000 0 there must be a better way.
Intel fortran compiler 19 1 developer guide and reference.
Submitted december 16 2019.
Floor a returns the greatest integer less than or equal to x.
Result floor a kind arguments.
The following are available from fortran 77.
This function returns results similar to the fortran function anint.
Only the last one is difficult to explain which is most easily done with the examples from iso 1991.
Abs aimag aint anint cmplx conjg dble dim dprod int max min mod nint real and sign.