所以我想要一个整型数。
所以我可以通过改变其中一个,整型数为浮点数。
And I can fix this just by changing one of those values to a floating point.
好的,这段代码分配两个指针,可以指向整型数。
Okay. This code allocates two Pointers which can point to integers.
代表24位音频样本作为32位整型数和忽视上八位。
Represent 24-bit audio samples as 32-bit ints and ignore the upper eight bits.
我想要一个整型数,一个冒号,和一个,使其更美观的空格。
I'd like an integer please, a colon, and a space just for aesthetic reasons.
这个问题只会发生在,当你用一个整型数除以一个整型数的时候。
The problem only arises if you have an int divided by an int.
一个整型数的地址,但是在函数,大括号中的环境中,意思是定位到那个地址。
Expect the address of an int but here in the context of the function itself inside the curly braces, it means go to that address.
无符号长整型数,它给出输入字符串的IL偏移量,或在没有IL偏移量或字符串格式不良时给出零。
Offset Unsigned long integer giving the IL offset from the input string, or zero if there was no IL offset or the string was not well formed.
比如,如果出于优选的考虑,您希望适应性是一个7位的整型数,您想要的范围就是0到32767之间。
You may want a range between 0 and 32767, for instance, if you want the fitness to be a 7-bit integer for optimization.
当旧客户端发送int时,保持原有整型数的特性,它们既可以被作为字符串也可以作为整数(ints)发送。
When old clients send ints, the integer characters are still characters, and they can be sent as strings as well as ints.
好的,直观地看,如果那个问题的原因是因为整型数除以整型数的话,无疑有个解决方案是:“不要那样做“,是吗?
Well, if intuitively the problem is the result of dividing an int by an int, surely a solution is: "Don't do that," right?
除支持基本的字符串之外,您还可以存储布尔值、双精度数、浮点数、整型数、长整型数和字节数组(考虑序列化)。
In addition to basic string support, you can store booleans, doubles, floats, integers, longs, and byte arrays (think serialization).
它直接把小数点后面的数值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点数据,但是我需要一个更精确的数值。
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.
实用的单片机开发与应用程序,包括:中值滤波子程序,AD转换类程序,16、32位整型数开方,单片机音乐程序——祝你平安。
MCU development and practical applications, including: median filter subroutine, AD converter type of proceeding, 16, 32-bit integer number prescribing, SCM music program - I wish you peace.
所以即使那个正确的答案是4,或别的数值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。
So even if the correct mathematical answer is 1.4 or whatever, when you divide an int by an int, you only have room in that variable, in the response for an actual integer.
记住,整形数运算要比浮点数运算快得多,因为处理器可以直接进行整型数运算,浮点数运算需要依赖于外部的浮点数处理器或者浮点数数学库。
Remember, integer arithmetic is much faster than floating-point arithmetic, as it can usually be done directly by the processor, rather than relying on external FPUs or floating point math libraries.
一些处理器在处理无符号整型数要比处理符号整型数快得多,这也是一个好的习惯,有利于代码的自我文档化(self- documenting)。
Some processors can handle unsigned integer arithmetic considerably faster than signed (this is also good practice, and helps make for self-documenting code).
我们知道从周三起--简单说下-,我们有个叫做“char“或“char“,看你们怎么读它了,那代表一个单一的字符,但那里会有个整型数与之对应。
We know from Wednesday if -- briefly -- that there's this thing called a "char" or "char," depending on how you want to pronounce it, which is just a single character but where there's also an int.
必须指定数组维数,并且它们必须为正的整型常量来表示。
The array dimensions must be specified and they must be positive constant integer expressions.
必须指定数组维数,并且它们必须为正的整型常量来表示。
The array dimensions must be specified and they must be positive constant integer expressions.
应用推荐