Is there a python function to return the base-value of floats?

前端 未结 0 1173
無奈伤痛
無奈伤痛 2021-02-04 08:05

I know int() will return the base value if the first argument is a whole number but will return an error if the number has a decimal.

For example,

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