yogesh kapil
1st August 2012, 07:10
hi all,


what should i do to get proper result in dividation. i mean i am not getting Decimal values. suppose if a = 10/3 then i am getting only 3 not 3.1.

please guide me. the data type of a is float.

rahul.kolhe22
1st August 2012, 07:39
Hi,

Please try as below

a = 10.0 / 3

you will get a = 3.33

Reason: on RHS either divisor or dividend should be of type float/double.

Kind Regards,
Rahul

yogesh kapil
1st August 2012, 08:38
Hi rahul,

Now its working very fine. I am very Thankful to you.

Yogesh Kapil