I was just working on a really cool map plugin and I ran into the same problem Drumstix42 did.
I need to be able to set Top = A + B - C but we all know that this doesn't work because all math is done in some kind of floating point type and Top or Left wont take a floating point number. Would it be possible for the + - * operators to be overloaded to preserve type? Otherwise would it be possible to convert from float to integer?
Thanks, Rothgar!
|