Does anyone know a *fast* way of converting a float to a short so that it can be converted back to its original float value later on (minus some precision, obviously). I want to be able to store values of up to 99.99, with the point fixed in this place. Currently I am using string concatenation tricks (e.g. toString and intValue() on single bytes) but would rather do this mathematically somehow because speed is totally of the essence in this project! (I am working with streaming animations).
Thanks very much in advance for any help anyone can give,