Share via


SignificantDigitsNumberRounder.SignificantDigits Property

Definition

Gets or sets the number of significant digits this SignificantDigitsNumberRounder object uses for rounding.

public:
 property unsigned int SignificantDigits { unsigned int get(); void set(unsigned int value); };
uint32_t SignificantDigits();

void SignificantDigits(uint32_t value);
public uint SignificantDigits { get; set; }
var uInt32 = significantDigitsNumberRounder.significantDigits;
significantDigitsNumberRounder.significantDigits = uInt32;
Public Property SignificantDigits As UInteger

Property Value

UInt32

unsigned int

uint32_t

The number of significant digits used for rounding.

Remarks

This property is initialized to a default value of 1.

If this property is 0, no rounding is performed by the SignificantDigitsNumberRounder object.

When rounding is performed, leading 0s in the input are not considered. Significant digits are counted beginning with the first non-zero digit until the number of SignificantDigits occurs, and then RoundingAlgorithm is used to round at that position.

Applies to