question: public static void storeWeightValue ( Context context , String displayValue ) { double value ; try { value = Double . parseDouble ( displayValue ) ; if ( ! isMetricUnits ( context ) ) { value = value * UnitConversions . LB_TO_KG ; } } catch ( NumberFormatException e ) { Log . e ( TAG , "invalid value " + displayValue ) ; value = getDefaultWeight ( context ) ; } setFloat ( context , R . string . weight_key , ( float ) value ) ; }
target:  Stores the weight value, always in metric units.