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

前端 未结 4 1909
傲寒
傲寒 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:28

    The value would be 1.0e300, but I'm sure that what is intended is that it be set to the largest double value that can be expressed on the current CPU. so in C# that would be double.PositiveInfinity rather than some hard-coded value.

提交回复
热议问题