/** * Format a number, given the two subpictures and the decimal format symbols * * @param number the number to be formatted * @param subPictures the negative and positive subPictures * @param dfs the decimal format symbols to be used * @return the formatted number */ private CharSequence formatNumber( NumericValue number, SubPicture[] subPictures, DecimalSymbols dfs) { NumericValue absN = number; SubPicture pic; String minusSign = ""; if (number.signum() < 0) { absN = number.negate(); if (subPictures[1] == null) { pic = subPictures[0]; minusSign = "" + unicodeChar(dfs.minusSign); } else { pic = subPictures[1]; } } else { pic = subPictures[0]; } return pic.format(absN, dfs, minusSign); }