November 26, 2003 casting complex types | ||||
---|---|---|---|---|
| ||||
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? |
November 26, 2003 Re: casting complex types | ||||
---|---|---|---|---|
| ||||
Posted in reply to davepermen | 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? > > |
Copyright © 1999-2021 by the D Language Foundation