on 06-02-2009 6:08 AM
Hi,
How to get Value Range value in Java?
Thanks.
Best regards,
Xiang Li heah
Are you asking the range of each data type in java?
int
4 bytes, signed (two's complement). -2,147,483,648 to 2,147,483,647.
Like all numeric types ints may be cast into other numeric types (byte, short, long, float, double).
When lossy casts are done (e.g. int to byte) the conversion is done modulo the length of the smaller type.
long
8 bytes signed (two's complement). Ranges from -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807.
float
4 bytes, IEEE 754. Covers a range from 1.40129846432481707e-45 to 3.40282346638528860e+38 (positive or negative).
Like all numeric types floats may be cast into other numeric types (byte, short, long, int, double).
When lossy casts to integer types are done (e.g. float to short) the fractional part is truncated and the conversion is done modulo the length of the smaller type.
double
8 bytes IEEE 754. Covers a range from 4.94065645841246544e-324d to 1.79769313486231570e+308d (positive or negative).
Regards,
Jaya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this:
http://help.sap.com/saphelp_47x200/helpdata/EN/fc/eb2fd9358411d1829f0000e829fbfe/content.htm
Regards,
Jaya.
HI VJR,
I want to get Value Range as define in Domain for certain field in R/3.
Eg, ZSEX domain 's Value Range in R/3 as below
01 Male
02 Female
Assume ZZSEX is using ZSEX domain;and
I want to get value "Male" when field value ZZSEX = 01.
Thanks.
Best regards,
Xiang Li Heah
Edited by: xiangli heah on Jun 2, 2009 8:27 AM
Moved to Java Web Dynpro forum
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Moved to Java Web dynpro forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.