and most, perhaps, obviously-- if you're just spending your life floating in the scientist's lab, you're not actually accomplishing anything.
显而易见-,如果你只是漂浮在科学实验室里,你实际上没有完成任何事情。
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.
它直接把小数点后面的数值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点数据,但是我需要一个更精确的数值。
You can run into issues of things like overflow, underflow, with floating point numbers and when you see a whole bunches of ones, it's particularly a good time to be suspicious.
来看看哪儿会出问题,你可能会碰到浮点数中的溢出和下溢问题,当你碰到一系列这种问题后,可能就会适时的开始怀疑结果的正确性。
You have a block here and then you have something above there floating in mid air.
你在这里放一个木块,让某物漂浮在木块之上
These mortgages were given out to people that couldn't afford them and today you have what you call subprime mortgages--subprime paper They issued against this paper stuff called mortgage-backed security. They securitized them and these things are all floating around now.
我们发放这些抵押贷款给那些买不起房子的人,所以现在你们看到了一种你们叫做,次级抵押贷款的金融工具--次贷票据,他们把这种票据叫做,有抵押证券,他们把有抵押证券证券化,这些证券现在在市场上被多次交易,广为流通。
When transcription happens and it turns out that there's a whole biology associated with this, including molecules that are floating around inside your cells called transcription factors, and their job-- they are molecules that are about particular genes and what some of the sequences and are able to turn on those genes inside cells, to make them transcribe.
研究证明,当细胞转录时,还有与之相关的一整套生物机制在运作,包括一种在你细胞中飘浮着的,称为转录因子的分子,它们的工作就是,它们知道该转录哪一段基因,该转录哪一段序列,然后把这些细胞中的基因激活,进行转录
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这样一个浮点数,-到另一个浮点数-,然后为我们处理除法。
0 >> David: Yeah, so I very deliberately changed this 9 to a 9.0 so that my math would actually be floating point math involving real numbers and not just integers.
>,大卫:是的,我故意地把9改成9,那样我的数学实际上就是浮点数的了,包括实数,不只是整数。
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."
这里我的确需要告诉计算机,“给我一些字节内存,来存储一个值,那个值将是,浮点型的数值“
And I can fix this just by changing one of those values to a floating point.
所以我可以通过改变其中一个,整型数为浮点数。
So this is something that we would call an integer, or an INT. And this is something we would call a floating point, or a float.
这是我们称之为integer的类型,或者INT,这是我们,称为浮点数的类型,或者浮点。
It turns out there are hundreds of Google calendars floating around campus, for student groups, for departments, for special events and the like.
在校园周围流动着许多的Google日历,有针对学生群的,有针对教学单位的,也有针对特殊事件的,等等。
All right. I want to return to some non-scalar types. So we've been looking, the last couple of lectures, at floating pointing numbers and integers.
好,我们现在回到一些,非基本类型的话题来,我们在过去的几节课里,一直在研究浮点数类型和integer类型。
If I had a beaker sitting on the table here and it contained a million blue double stranded DNA molecules and a million red double stranded DNA molecules and I heated it up and added a little base, I'd soon have four million individual strands just floating around in the solution because I've broken up this hydrogen bonding and the DNA molecules fall apart.
假如我这里有一个烧杯 里面,盛有一百万条蓝色DNA双链和,一百万条红色DNA双链,然后我稍微加热一下烧杯,并且加一些碱,很快我就有了四百万条DNA单链,漂浮在溶液里,因为我已经使得氢键断裂,DNA双链也随之打开
It's defined in CS50's library; its sole purpose in life is to ask the user for a floating point value and return it.
它被定义在CS50的函数库中,它的唯一目的是,向用户询问一个浮点数的值,然后返回它。
应用推荐