cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to get Value Range value?

Former Member
0 Likes
524

Hi,

How to get Value Range value in Java?

Thanks.

Best regards,

Xiang Li heah

View Entire Topic
Former Member
0 Likes

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.

Former Member
0 Likes

Hi VJR,

Nope, value range for corresponde domain in R/3.

Thanks.

Best regards,

Xiang Li Heah

Former Member
Former Member
0 Likes

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

Former Member
0 Likes

You are posting to the wrong forum.