Quote:
Originally Posted by Wanetrain
Bittttttteeeeeee
#ThingsEpvpDoes
|
The return value and the tax value itself is a float and shouldn't be displayed as integer anyway. So best practice would be to rewrite the window to display the correct value.
But for a matter of simplicity i just included the basic "fix" so people can implement it without having to worry about further aspects.
Wether you use a C-Style cast or static is quite irrelevant here, the code design is still bad.
EDIT:
FML double post