D - casting complex types
- davepermen (5/5) Nov 26 2003 float imag(ifloat x) {
- davepermen (4/9) Nov 26 2003 float image(ifloat x) {
float imag(ifloat x) {
return cast(float)x;
}
doesn't work. partially understandable, but how do i get the ifloat value out of
the ifloat, and use it as a real float then?
Nov 26 2003
float image(ifloat x) {
return x.im;
} looks like that works, too
In article <bq281a$2s94$1 digitaldaemon.com>, davepermen says...
float imag(ifloat x) {
return cast(float)x;
}
doesn't work. partially understandable, but how do i get the ifloat value out of
the ifloat, and use it as a real float then?
Nov 26 2003








davepermen <davepermen_member pathlink.com>