TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки
Python Заметки avatar

TGINSIGHT POST

Post #143

@pythonotes

Python Заметки

Views794Post view count
PostedSep 909/09/2020, 09:00 AM
Post content

Post content

Функция round() может округлять не только дробную часть но и целую. Для этого нужно использовать отрицательное значение. >>> round(12345.6789, 2) 12345.68 >>> round(12345.6789, -2) 12300.0 #tricks