CurrencyFormatter.IsZeroSigned Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether -0 is formatted using the conventions for negative numbers or for positive numbers. (In the Latin numeral system, the choice is "-0" or "0".)
public:
property bool IsZeroSigned { bool get(); void set(bool value); };
bool IsZeroSigned();
void IsZeroSigned(bool value);
public bool IsZeroSigned { get; set; }
var boolean = currencyFormatter.isZeroSigned;
currencyFormatter.isZeroSigned = boolean;
Public Property IsZeroSigned As Boolean
Property Value
bool
True if -0 is formatted as a negative number, and false if -0 is formatted as a positive number ("-0" or "0" in the Latin numeral system).
Implements
Remarks
You can set this property to specify that CurrencyFormatter display negative 0 as "-0". This enables the scenario where you wish to display "-0" when it represents the rounded value of some small negative value (such as -0.00001).
This property defaults to false to be consistent with Windows 8 and Windows Server 2012, in which -0 was always formatted as "0".