Do not use int and long interchangeably because of the possible truncation of significant digits. For example, don't do this?
不要交换使用int和long类型,因为这可能会导致高位数字被截断。
These methods are almost always overloaded with an int/TimeUnit pair, indicating how long the method should wait before bailing out and returning control to the program.
这些方法几乎总是包含一个int/TimeUnit 对,指示这些方法应该等待多长时间才释放控制权并将其返回给程序。
C-89 data types (include signed and unsigned) short, int, long, long long, float, and double.
C- 89数据类型(包括有符号和无符号)short、int、long、long long、float和double。
This would only happen if the value were a "narrowing conversion," where a value exceeded the possible range value allowed in the new type, such as trying to convert from long to int, for example.
只有当一个值 “转换为范围更小的类型” 时,即这个值超出了新类型允许的范围,例如试图从long 类型转换为int 类型,才会发生这样的情况。
As an example, Listing 6 shows what happens when I change the type of the local variable used for the method start time in the interceptor code from long to int.
作为一个例子,清单6展示了在将方法开始时的拦截器代码所使用的局部变量的类型从long变为int时的情况。
You use both the int and long types to hold integer values, the difference being that an int is a 32-bit integer value.
您可以使用int和long两种类型来保存整数值,它们的不同点在于int是一种32位的整数值。
Object.wait (long timeout, int nanos) provides nanosecond granularity for a relative wait operation.
wait (longtimeout,intnanos)为相关的等待操作提供纳秒粒度。
In the reference pane, content assist, and the documentation, you see Numbers labeled as int, long, and double using the colon notation.
在reference面板、内容帮助和文档中,可以发现使用冒号标记将数值标注为int、long和double。
The first four types—byte, short, int, and long—represent integers with different maximum and minimum values that reflect the capacity of the memory cells in which they are stored.
前四种类型——byte,short,int还有long代表了不同大小范围的数值,以此反映用来存储这些数值的内存单元的容量。
C + + code developed in Win32 systems is based on the ILP32 model, where int, long, and pointer types are 32 bits.
在Win32系统中开发的C++代码是基于ILP32模型的,在该模型中,int、long和指针类型都是32位的。
Since pointer, int, and long are no longer the same size on 64-bit systems, problems may arise depending on how the variables are assigned and used within an application. A few tips in this regard.
由于指针、int和long在64位系统上大小不再相同了,因此根据这些变量是如何赋值和在应用程序中使用的,可能会出现问题。
The difference among an int, float, and long are not compelling distinctions among the Numbers themselves, but simply accidents of how chip designers have used registers and operands.
float与long之间的区别不是数字本身之间的强制区别,而是芯片设计者如何使用寄存器和操作符所引起的一些简单后果。
Declare numeric variables as int or long for alignment and performance.
为了对齐和性能的需要,请将数字变量声明为int或long类型。
So before long, we'll see, especially for problems that we can't allocate an int every time we want to store something, because what if we want to store 140,000 English words.
所以不久后,我们将看到,特别是对于,我们不能为int分配内存,每次我们想要,存储一些东西时,因为当我们想要,存储140,000个英语单词时。
The alignment is always the same as the type size; that is, a variable of type int is four bytes long and will be stored at a 4-byte boundary.
排列的方式通常和类型的大小保持一致;例如,int类型的一个变量的长度是4字节,因此要将它存储在4字节区域。
Numeric long, complex, float, and bool have an explicit adapter, but int lacks any.
float和bool类型的数字有显式的适配器,不过int一个都没有。
This differs from c, for example, in which an int type can be 16, 32, or 64 bits long depending on the platform.
这个和C不同,例如,C的int类型可以是16位,32位或者64位的,取决于不同的平台。
For instance, carelessly written code often treats int and long objects as interchangeable.
举例来说,不严密的代码通常会将int和long对象当成可互换的类型。
Interval averaged: the trace (long value, String name) and trace (int value, String name) methods issue traces for interval averaged values (see the Intervals sidebar).
平均时间间隔:trace (longvalue,Stringname)和trace (int value, String name)方法将发出时间间隔平均值的跟踪(请参阅时间间隔侧栏)。
The long and int types have been unified into a single type, with the trailing L now removed.
long和int类型被统一为一种类型,删除了后缀L。
On a 32-bit system, int and long are of the same size.
在32位系统上,int和long大小相同。
The main inducing factors included senility, physical weakness, mental tension, fasting of long time before intervention and less fluid infusion after int…
年老体弱、精神紧张、术前禁食时间长、术后补液量少为其主要诱发因素。
The main inducing factors included senility, physical weakness, mental tension, fasting of long time before intervention and less fluid infusion after int…
年老体弱、精神紧张、术前禁食时间长、术后补液量少为其主要诱发因素。
应用推荐