How to disable scientific notation in .AsString in Delphi?

前端 未结 1 967
攒了一身酷
攒了一身酷 2020-12-19 15:16

Hi I want to get numbers from database, for example, if the number in database is 44.7890000000, I would like to get a string 44.789, the same 0.0010000000 -> 0.001, just ke

相关标签:
1条回答
  • 2020-12-19 16:20

    As an alternative to setting the field's DisplayFormat property, you can read from AsFloat and pass the value directly to FormatFloat. It uses the same format pattern.

    0 讨论(0)
提交回复
热议问题