简体   繁体   中英

round a number up and use log in python

I have the following number - 191897378

I want to turn this into 192 representing 192 million. I have tried ceil(191897378) and using a log but I am going horribly wrong here. Any help would be greatly appreciated.

x = 191897378/1000000
round(x)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM