And there's probably more digits after the decimal place, but because of my formatting string, I only see a couple of them.
这里可能有更多的小数位,但因为我对结果设定了格式,我们只看到两位。
Glancing at the bottom, this is pretty arbitrary, but I chose to format my string as follows: % 1f so at the bottom here I'm printing out %.1f, which quick sanity check means print just one digit after the decimal place.
看下这个底部,这个是相当随意的,但我选择把我的字符串格式化成这样:,所以在这个底部我打印输出,提醒一下,这是一个只打印出,小数点后一位的方法。
So, you can understand they really felt quite confident at this time that we could explain everything that was going on and in fact, a really telling quote from the time was said by a professor at the University of Chicago, and what he said is, "Our future discoveries must be looked for in the sixth decimal place."
所以你可以理解,为什么当时的人那么,自信的说我们可以解释,这世界上发生的一起事情,事实上,当时有个著名的名言,是芝加哥大学的一个教授说的,他说“我们今后的科学发现,就在于弄清楚小数点第六位后的数,“
So unlike an int, this is the type of number that can have numbers after a decimal place.
所以,不同于int,这个类型的数字,可以有小数位。
应用推荐