Truncate python float according another float

前端 未结 0 471
傲寒
傲寒 2021-02-08 03:04

I have this float number in Python:

0,039786

And i want to truncate it according the decimals that the next float value has:

0,000         


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