private static float systemPropertyValue(String name){
  String floatString=System.getProperty(name);
  if (floatString == null)   return Float.NaN;
  try {
    return Float.parseFloat(floatString);
  }
 catch (  NumberFormatException ex) {
    throw new IllegalArgumentException(String.format("Bad float value in system property %s=%s",name,floatString));
  }
}

private static float systemPropertyValue ( String name ) { String floatString = System . getProperty ( name ) ; if ( floatString == null ) return Float . NaN ; try { return Float . parseFloat ( floatString ) ; } catch ( NumberFormatException ex ) { throw new IllegalArgumentException ( String . format ( "Bad float value in system property %s=%s" , name , floatString ) ) ; } }
returns the value of the system property , or nan if not defined .
