SharedPreference is (for some reason) not able to save doubles.
This leaves me with two options, either casting the double to a float,
which is a lossy conversion and widely regarded as a bad move. Or
I could convert the value of the double to it's raw long bits equivalent
and store this as a long instead. I choose the latter.
SharedPreference is (for some reason) not able to save doubles. This leaves me with two options, either casting the double to a float, which is a lossy conversion and widely regarded as a bad move. Or I could convert the value of the double to it's raw long bits equivalent and store this as a long instead. I choose the latter.