Share via


PermilleFormatter.IsZeroSigned 属性

定义

获取或设置 -0 的格式是“-0”还是“0”。

public:
 property bool IsZeroSigned { bool get(); void set(bool value); };
bool IsZeroSigned();

void IsZeroSigned(bool value);
public bool IsZeroSigned { get; set; }
var boolean = permilleFormatter.isZeroSigned;
permilleFormatter.isZeroSigned = boolean;
Public Property IsZeroSigned As Boolean

属性值

Boolean

bool

如果 -0 的格式为“-0”,则为 True;如果 -0 的格式设置为“0”,则为 false

实现

注解

可以将此属性设置为指定 PermilleFormatter 将负 0 显示为“-0”。 这样一来,当“-0”表示某些小负值 ((例如 -0.00001) )的舍入值时,你希望显示“-0”。

此属性默认为 false 以与 Windows 8 和 Windows Server 2012 保持一致,其中 -0 的格式始终为“0”。

适用于