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);
    }
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.

@param number The number to parse.
@param context The context to use.
@param args The arguments of the macro.

@return The number as a string.