Retrieves the negative number format for the current locale.
public int getNegativeNumberMode()
Returns an integer value that represents the negative number format.
The return value of this method can be one of the following values:
Value | Format |
0 | (1.1) |
1 | -1.1 |
2 | - 1.1 |
3 | 1.1- |
4 | 1.1 - |
You can compare the return value of the getNegativeNumberMode method against the fields of the Locale.NegativeNumberMode class to determine the negative number format for the current locale.
See Also setNegativeNumberMode