Java NumberFormat with equivalent negative and positive pattern
问题 I want to format a number without any prefix (or the same prefix) for both positive and negative numbers. The specification of NumberFormat states that you can specify a sub pattern for positive numbers and a sub pattern for negative numbers, separated by a semicolon. Each subpattern has a prefix, numeric part, and suffix. The negative subpattern is optional; if absent, then the positive subpattern prefixed with the localized minus sign ('-' in most locales) is used as the negative subpattern