换句话说,我可以只取输出的整数部分并使用它作为预期输出代码的合适位。
In other words, I can simply take the integer portion of the output and use that as the appropriate digit of the expected output code.
但是,如果对浮点数使用取模和求余数操作符,则会产生错误,因为这些操作符只支持整数。
However, an error will be raised when using an equivalent of the modulus and remainder operators on floating values, as these support only integer values.
函数的作用是:通过进一法取整(即:返回的数字是大于或等已给定数字的最小整数)。
The ceil() function returns the value of a number rounded UPWARDS to the nearest integer.
Round numbers, this is one angstrom.
取整数是一埃。
And unlike n, l can start all the way down at 0, and it increases by integer value, so we go 1, 2, 3, and all the way up.
不像n,l可以从0开始取,然后每次增加一个整数,所以我们可以去1,2,3,一直下去。
Go ahead and implement with the person next to you a program that takes as input from the user an integer called F and prints out the answer of the Celsius equivalent.
继续和你旁边的人执行程序,取来自用户的整数F作为输入,然后打印出与之等价的摄氏温度的答案。
应用推荐