That kind of problem tends to arise because they're using a language or a computer that only has finite precision and so there are rounding errors.
这类问题已经日趋严重了,由于他们使用的语言或电脑,都是精度有限的,因此存在这样的问题。
I also like computer programs that are simply in that language and seeing the item.
我也喜欢简单运用那种语言的电脑程序,而且你可以很容易地看到各个条目。
To do that, we need to describe: not only, what are the primitives, but how do we capture things legally in that language, and interact with the computer?
为了达到这个目的,我们需要描述:,包括程序基本的东西,以及怎么在这种语言中,做我们想做的事情并和计算机交互?
If you want to write programs, you learn to write programs in the computer's language.
如果想要编写程序的话,必须用到电脑语言。
It turns out that in a lot of languages, C included, you the programmer knowing a bit about how the computer works and the language works, can exercise more fine-grained control.
结果在包括C语言的很多语言当中,你作为一个程序员懂得了一些计算机的工作方式,和语言的处理方式,可以更精确地控制运用它。
is I even changed my computer settings to that language, to the target language,
我甚至把电脑设置都改成了那种语言,也就是所学习的语言,
Computer programming is a lot like learning a different language,
电脑编程很像是学习一种不同的语言,
Today, you learn to speak the computer's language.
今天你学会电脑语言。
But one of the teaching fellas also passed long to us recently, a little real world example of what happens when you're not mindful of various data types and you're not mindful of the imprecision that's inherent in representing data in a computer, at least using a language like C and low level primitives like floats and even doubles.
最近有个助教告诉我们,一个现实世界中的例子,当你不注意各种各样的数据类型,也不注意在计算机中表示数据时,其内在的不精确性,至少在用像C语言,和float甚至double型数据时,那将会发生什么?
应用推荐