consider ,
object a =1.123456;
float f = convert.ToSingl e(a);
But when I print the value of f , I get 1.123455.
It is getting rounded off.
Also the problem is I cant change the data type of float in the code.
Please help.
object a =1.123456;
float f = convert.ToSingl e(a);
But when I print the value of f , I get 1.123455.
It is getting rounded off.
Also the problem is I cant change the data type of float in the code.
Please help.
Comment