go top 返回词典
• And as you might expect, I'm going to then try and see if I can convert that into a float.

正如你希望的我要试着把他们转化为浮点数,等一等。

麻省理工公开课 - 计算机科学及编程导论课程节选

• Last time we checked the type and said if it is a float you're okay. If not, carry on.

并且会告之是否是一个浮点数,如果不是继续循环。

麻省理工公开课 - 计算机科学及编程导论课程节选

• So what that means is the compiler is actually going to first "cast" so to speak 13 from whatever it is - to a float -- to a floating point value -- and then perform the division for us.

所以这里的意思是编译器将,做“计算“，譬如13这样一个浮点数,-到另一个浮点数-,然后为我们处理除法。

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

• I just want to float to the dining hall after-- " so much easier, so much less painful."

我只想下午时飘去餐厅-,更加容易，更少痛苦“

哈佛公开课 - 幸福课课程节选

• OK, says it says enter a float. I give it something that can be converted into a float, it says fine. I'm going to go back and run it again though. If I run it again, it says enter a float.

好了，看到他说输入一个浮点数,我输入它可以转换为浮点数的值,那没问题，我回过来再运行一遍,如果我再运行一遍。

麻省理工公开课 - 计算机科学及编程导论课程节选

• I can't rely on the user. I want to make sure I get a float in it, so how do I do that?

我想确保这儿我得到的是一个浮点数,我该怎么做呢？

麻省理工公开课 - 计算机科学及编程导论课程节选

• Then I'd be multiplying a float by 5, so that's a float times an int.

然后我们把这个浮点数乘以，那是浮点数乘以整型数。

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

• - And then I divide by an int -- that's okay because so long as you have a float involved at some point early on, you're okay.

然后我除以一个整型数-,那是可以的因为现在为止，我们在之前已经,引入了一个浮点数，你是对的。

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

• I need to have a float. I need to have another float here, it's giving me some information.

这儿还需要一个,它给了我这样的信息。

麻省理工公开课 - 计算机科学及编程导论课程节选

• Need to get the base in. Second thing I want to do, I need to get the height, so I'm going to input a value for the height, also as a float, a floating point.

也就是输入底的值，第二件我想要做的，事情就是得到三角形的高,因此我会输入一个值作为三角形的高，同样也是一个浮点数。

麻省理工公开课 - 计算机科学及编程导论课程节选

• If I wanted to get full, real division, I should make one of them a float.

如果我想要得到真正的除法答案，我需要把他们之中的一个,变为浮点数类型。

麻省理工公开课 - 计算机科学及编程导论课程节选

• So, a 32 bit of float gives you a bunch of precision.

2比特的浮点型数据精度更大。

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

• It means anybody using that little function get float doesn't have to worry about what's inside of it. So for example, I decide I want to change the message I print out, I don't have to change the function, I just pass in a different parameter.

这代表着用这个方法去获得浮点数,的任何人都不用担心具体的实现了,例如，如果我想改变下,显示的信息的话，我不必去改变方法，我传个不同的参数就可以了。

麻省理工公开课 - 计算机科学及编程导论课程节选

• Well I'm relying on the contract, if you like, that the manufacturer of square root put together, which is, if I know I'm giving it two floats, which I do because I make sure they're floats, the contract, if you like, of square root says I'll give you back a float.

好吧我能靠一些类似合约来保证，如果这么说你喜欢的话,其实就是当求平方根的方法,获得了两个我已经确认了是浮点数的数后,这个类似合约的东西就会保证，返回一个浮点数。

麻省理工公开课 - 计算机科学及编程导论课程节选

• As you walk amid the buildings and trees, as you see your friends and classmates, allow these emotions to float through you, freely, lightly.

在你走在建筑物和树木之间时，在你看到朋友和同学时，让那些情绪流遍你的全身，自由地，轻盈地。

哈佛公开课 - 幸福课课程节选

• Whatever they are, whatever it is that your feeling, allow it to float through you. Naturally.

不论是怎样的情绪，不论感觉到什么，让它流过你的全身，自然地。

哈佛公开课 - 幸福课课程节选

\$firstVoiceSent
- 来自原声例句