public static double parsePercent(FXGNode node,String value,String name){
  if (value.length() != 0 && value.charAt(value.length() - 1) == '%') {
    String doubleValue=value.substring(0,value.length() - 1);
    try {
      return parseDouble(node,doubleValue,name);
    }
 catch (    FXGException e) {
      throw new FXGException(node.getStartLine(),node.getStartColumn(),"InvalidPercentValue",name,value);
    }
  }
 else {
    return parseDouble(node,value,name);
  }
}

public static double parsePercent ( FXGNode node , String value , String name ) { if ( value . length ( ) != 0 && value . charAt ( value . length ( ) - 1 ) == '%' ) { String doubleValue = value . substring ( 0 , value . length ( ) - 1 ) ; try { return parseDouble ( node , doubleValue , name ) ; } catch ( FXGException e ) { throw new FXGException ( node . getStartLine ( ) , node . getStartColumn ( ) , "InvalidPercentValue" , name , value ) ; } } else { return parseDouble ( node , value , name ) ; } }
convert an fxg string value to a double after taking care of the % sign .
