Locale.getNegativeNumberMode

Overview | Methods | This Package | All Packages

Locale.getNegativeNumberMode

Retrieves the negative number format for the current locale.

Syntax

public int getNegativeNumberMode()

Return Value

Returns an integer value that represents the negative number format.

Remarks

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