Feature Request

Michael F. Stemper michael.stemper at gmail.com
Wed Mar 23 09:44:45 EDT 2022


On 23/03/2022 03.55, Kazuya Ito wrote:
> Add "trun()" function to Python to truncate decimal part.

Which of these should its behavior copy?

>>> from math import pi
>>> int(pi)
3
>>> pi-int(pi)
0.14159265358979312
>>> 

-- 
Michael F. Stemper
This post contains greater than 95% post-consumer bytes by weight.


More information about the Python-list mailing list