public static void putDouble ( final String key , final double value ) { final Editor editor = getPreferences ( ) . edit ( ) ; editor . putLong ( key , Double . doubleToRawLongBits ( value ) ) ; editor . apply ( ) ; }
Stores a double value as a long raw bits value .