Double to String keeping trailing zero

后端 未结 3 1279
攒了一身酷
攒了一身酷 2020-12-10 18:11

I\'ve tried converting the double value into a string and using the Replace() method to replace the \',\' to \'.\'.

This works well but only when the

3条回答
  •  独厮守ぢ
    2020-12-10 18:41

    ...and in Fortran, you could do something like: :-)

          write(*,110) x
      110 format (F5.3)
    

    (guess we really have to know what language is being used...)

提交回复
热议问题