And there's probably more digits after the decimal place, but because of my formatting string, I only see a couple of them.
这里可能有更多的小数位,但因为我对结果设定了格式,我们只看到两位。
So it turns out there's a solution to this: If you need more precision, more digits after the decimal point than a float allows, what do you go for instead?
所以这里有一个解决方案:,如果你需要比float类型允许的更高精度,小数点后更多位数,那你该用什么取代它?
- %d means -- >> >> David: Yep, so one or more digits.
d意思是-,>>,【无法辨认的声音】,>>,大卫:是的,1或更多的数字。
Percent D is for a digit, like a number or-- one or more digits.
d代表以数字的形式输出,比如一个数字或者--1或更大的数。
应用推荐