public double getValue ( ) { if ( ! ( uu instanceof ScaledUnit ) ) return Double . NaN ; ScaledUnit offset = ( ScaledUnit ) uu ; return offset . getScale ( ) ; }
Extract the value can only be called for ScaledUnit .