dealing with narrowing type conversions (Narrowing numberic Conversions), you must explicitly use conversion directives to accomplish these transformations, which include: i2b,i2c,i2s,l2i,f2i,f2l,d2i,d2l and d2f. Narrowing type conversions can result in a different sign and order of magnitude for the conversion result, and the conversion process is likely to result in a loss of precision in numeric values.Although the narrowing conversion of data typ
result to the top of the stack.
0x8b
F2i
Forcibly convert the top float value of the stack to an int value and press the result to the top of the stack.
0x8c
F2l
Forcibly convert the top float value of the stack to a long value and press the result to the top of the stack.
0x8d
F2d
Forcibly convert the top float value of the stack to a double value and press the result to the top of the stack.
0x8
. Small to large stable security conversion, no instruction, big turn small need instructions such as i2b,i2c,i2s,l2i,f2i,f2l,d2i,d2l,d2f.floating point to integer rule:1. When floating point is Nan, the result is 0.2. The floating-point non-infinity is rounded to 0 and is within the shape representation range, which is 3. Otherwise the transition is represented by a maximum or minimum positive number.object creation and access directivesNew creates c
;
#include
What are the basic steps of the cube CFDP method?
Cfop is a third-level advanced gameplay. There are no basic steps and layer-first method (the seven-step method is similar in principle) there are 119 formulas, of which the 41 formulas in the second step f2l are difficult, you can remember them completely or you can understand them. You can also call cfop the four-step method. The first step is the cross. The second step is to restore th
type3 float to double typeNarrow-Flower type conversion directives: I2B,I2C,I2S,L2I,F2I,F2L,D2L and d2f, narrowing type conversions can result in different positive and negative numbers, varying orders of magnitude, which may result in a loss of precision in the value of the conversion process. When an int or a long type converts an integer type T,The conversion process is simply discarding the least bit N bytes unexpected content (n is the type T da
type of data from a methodFreturn returning data of type float from a methodDreturn returning a double type of data from a methodAreturn returning data from a method from a reference typeReturn returned from the method with a return value of voidThread synchronizationMontiorenter Enter and get Object monitorMonitorexit releasing and exiting the object monitorJVM instruction MnemonicVariable-to-operand stack: iload,iload_operand stack to variable: istore,istore_Constant to operand stack: bipush,
) Displacement command: ishl, ishr, iushr, lshl, lshr, lushr8) bitwise OR command: ior, lor9) bitwise AND command: iand, land10) bitwise XOR or command: ixor, lxor11) local variable auto-increment command: iinc12) Comparison commands: dcmpg, dcmpl, fcmpg, fcmpl, and lcmp
The Java virtual machine does not explicitly specify Integer Data overflow. However, it specifies that when integer data is processed, an exception is thrown only when the division and remainder instruction have a division of 0.
conversion instructions) The following numeric types of the widening type conversion (widening Numeric Conversions, the small-range type to a large-scope type of security conversion):type int to a long, float, or double type.A long type to a float, double type.Float type to double type.Processing of narrowing type conversions (Narrowing Numeric Conversions)These conversion directives include: I2b, I²c, I2s, L2i, F2i, f2l, D2i, d2l, and d2f.4. Object
type conversion I2L Converts data of type int to type long i2f converts data of type int to float type i2d converts data of type int to double type L2i converts Long data to int type L2F Converts a long type of data to float type l2d converts a long type of data to a double type f2i converts data of type float to int type F2L converts data of type float to type long f2d Convert data of type float to double type d2i converts data of type do
of aI2B, I2C, I2s, L2i, F2i, f2l, D2i, d2l and d2f.
Narrowing type conversions are likely to result in loss of precision.object creation and Operation directivesTo create an instruction for a class instance: New to create an array instruction: Newarray,anewarray,multianewarray Access class fields (static fields, or class variables) and instance fields (not static fields, Or become an instance variable: GetField, Putfield, getstatic, putstatic the ins
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.