但是,如果对浮点数使用取模和求余数操作符,则会产生错误,因为这些操作符只支持整数。
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.
换句话说,我可以只取输出的整数部分并使用它作为预期输出代码的合适位。
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.
这些离散的值乘以整数,乘积因子,是普朗克常数除以2π,其中n可以取1,2,3,等等。
n It takes discrete values, multiples of some integer n, and the multiplication factor is the ratio of the Planck constant divided by 2 pi where n takes one, two, three and so on.
不像n,l可以从0开始取,然后每次增加一个整数,所以我们可以去1,2,3,一直下去。
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.
这个方法取一个整数(value)作为参数并返回以asn . 1INTEGER表达的这个整数值。
This method takes an integer (value) as a parameter and returns the ASN.1 integer representation of the integer value.
量化步骤会进行实际的压缩动作,部分信息会丢失。转换步骤的输出值经过取整,大部分是零,只留下几个整数系数。
The quantization step is the actual information-losing step where compression occurs; the output values of transform are rounded, mostly to zero, leaving only a few integer coefficients.
另外一个方法就是用格式运算符,也就是百分号%。在用于整数的时候,百分号%是取余数的运算符。但当第一个运算对象是字符串的时候,百分号%就成了格式运算符了。
An alternative is to use the format operator, %. When applied to integers, % is the modulus operator. But when the first operand is a string, % is the format operator.
另外,通过结合“2的幂”和“整数的平方”两种取量化阈值的策略,我们得到一种新的量化方法。
In addition, we present a new quantization method for taking quantization threshold by combining the power of 2 with the square of integer.
函数的作用是:通过进一法取整(即:返回的数字是大于或等已给定数字的最小整数)。
The ceil() function returns the value of a number rounded UPWARDS to the nearest integer.
所有的例项都取约数或整数,如:一张存储卡有80列。
All the examples are approximate and are rounded. For example, a computer card has 80 columns.
所有的例项都取约数或整数,如:一张存储卡有80列。
All the examples are approximate and are rounded. For example, a computer card has 80 columns.
应用推荐