@Override public void addAttribute(String name,float value){
  String str=Float.toString(value);
  if (str.endsWith(".0"))   str=str.substring(0,str.length() - 2);
  current.setAttribute(name,str);
}

@ Override public void addAttribute ( String name , float value ) { String str = Float . toString ( value ) ; if ( str . endsWith ( ".0" ) ) str = str . substring ( 0 , str . length ( ) - 2 ) ; current . setAttribute ( name , str ) ; }
adds an attribute to current element of the dom document .
