question: @ 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 ) ; }
target:  Adds an attribute to current element of the DOM Document.