Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion of a floating point type field

Former Member
0 Kudos

Hi,

I'm fetching field ATFLV from table AUSP for a particular value of ATINN.ATFLV is a floating point type field.

Can anyone please guide me as to how to convert this field(ATFLV) from floating point no. to a simple no.?

Helpful answers will be rewarded.

Regards,

Sipra

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Declare a Integer variable and move the Floating Point variable value to Integer variable.

Regards,

Satish

2 REPLIES 2

Former Member
0 Kudos

Hi,

Declare a Integer variable and move the Floating Point variable value to Integer variable.

Regards,

Satish

Former Member
0 Kudos

hi,

Do like this,

float f = 234.33;

int i = (int) f; // i has value 234.

reward points if helpful..