protected String parseNumberToString ( Number number , Context context , Arguments args ) { final NumberFormat numberFormat = parseFormatter ( context , args ) ; final Currency currency = context . get ( Contexts . CURRENCY ) ; if ( currency != null ) { numberFormat . setCurrency ( currency ) ; } return numberFormat . format ( number ) ; }
Parses the given number to a string depending on the context .