What does DATA INF/1.D+300/ mean in Fortran?

前端 未结 4 1896
傲寒
傲寒 2021-01-20 17:06

I\'m translating some Fortran to our C# app and I\'m trying to figure out what a bit of Fortran means at the top of a function.

  DOUBLE PRECISION INF, DMIN,         


        
4条回答
  •  耶瑟儿~
    2021-01-20 17:26

    The code is declaring a constant called INF (i.e. infinity) with the value 10^300. You would want to substitute double.PositiveInfinity or double.MaxValue.

提交回复
热议问题