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

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

  • So now we know the Avogadro number and are able to count the quantities accordingly.

    所以现在,我们知道阿伏伽德罗,并且能够以此计算出数值

    麻省理工公开课 - 固态化学导论课程节选

  • Just take a look: if this is 9, 5 divided by 9 is always going to be 0 point something, and if you thus have two integers and you're rounding down, which is what happens when you do integral math we're using this operator, I'm going to get zero times whatever.

    稍微看一看:如果这是9,5除以9会得到,0点几,如果你用两个整型,你舍去小,这就是当你们,用整型使用这个操作的所发生的事情,我将得到数值0乘以任何一个字。

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

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

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

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