A
almurph
Hi,
I'm casting from double to float in C# (yes, I know I will loose
precision but that is okay) but I am having a problem as follows:
double d = 8.5545888281710365;
float f = (float)d;
problem is though - I'm getting 0.0 for the value of the float!
Anyone with any ideas/suggestions as to why this is occuring? Would
appreciate any comments that you are able to offer in this regard.
Thank you,
Al.
I'm casting from double to float in C# (yes, I know I will loose
precision but that is okay) but I am having a problem as follows:
double d = 8.5545888281710365;
float f = (float)d;
problem is though - I'm getting 0.0 for the value of the float!
Anyone with any ideas/suggestions as to why this is occuring? Would
appreciate any comments that you are able to offer in this regard.
Thank you,
Al.