How could I get acceptable precision when converting a float to int gives an erroneous result?

前端 未结 0 802
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 20:58

I\'m currently running through a strange case : I have a double value with one decimal, ie. 24.9

from this value I want to get the entire part ie. entire = 24 and, as

相关标签:
回答
  • 消灭零回复
提交回复
热议问题