craxido / OOPP-TDA367-DIT212

Object oriented programming project, TDA367/DIT212, LP4 2017.
1 stars 0 forks source link

Fixed bug caused by sharedPreference being unable to store double #61

Closed erikdsjostrom closed 7 years ago

erikdsjostrom commented 7 years ago

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.