所以我想要一个整型数。
所以我可以通过改变其中一个,整型数为浮点数。
And I can fix this just by changing one of those values to a floating point.
我想要一个整型数,一个冒号,和一个,使其更美观的空格。
I'd like an integer please, a colon, and a space just for aesthetic reasons.
Expect the address of an int but here in the context of the function itself inside the curly braces, it means go to that address.
一个整型数的地址,但是在函数,大括号中的环境中,意思是定位到那个地址。
It just throws the decimal point away and that's because, again, these are ints and the answer intuitively should be a floating point value, but I need to be more specific.
它直接把小数点后面的数值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点数据,但是我需要一个更精确的数值。
4 So even if the correct mathematical answer is 1.4 or whatever, when you divide an int by an int, you only have room in that variable, in the response for an actual integer.
所以即使那个正确的答案是4,或别的数值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。
应用推荐