• 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,或别的数值,当你用一个整数除以一个整数,在那个变量的返回值里,只有,存储一个整数的空间。

    哈佛公开课 - 计算机科学课程节选

  • There's no decimal point; there's no point zero; there's no floating point value, it's just a hardcoded integer.

    这里没有小数点,这里没有;,这里没有浮点数值,它只是一个整数字。

    哈佛公开课 - 计算机科学课程节选

  • Here I actually need to tell the computer, "Give me some bytes in ram in which to store a value, and that value's going to be a floating point value."

    这里我的确需要告诉计算机,“给我一些字节内存,来存储一个值,那个值将是,浮点数值

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定