ArcObjects Library Reference  (System)    

IScientificNumberFormat.DecimalPlaces Property

The number of decimal digits in a scientifically-formatted number.

[Visual Basic 6.0]
Property DecimalPlaces As Long
[Visual Basic .NET]
Public Property DecimalPlaces As Integer
[C#]
public int DecimalPlaces {get; set;}
[Java]
public int getDecimalPlaces()
throws
    IOException,
    AutomationException
[Java]
public void setDecimalPlaces(
Long DecimalPlaces
)
throws
    IOException,
    AutomationException
[C++]
HRESULT get_DecimalPlaces(
  long* num
);
[C++]
HRESULT put_DecimalPlaces(
  long num

);

[C++]

Parameters

num [out, retval]

  num is a parameter of type long

num [in]

  num is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The DecimalPlaces property sets or returns a long representing the number of decimals to show in the mantissa. Since all digits in a scientific format expression are significant, set the DecimalPlaces property to the number of desired significant digits minus 1. For example, to express the value 1 to 3 significant digits (1.00e+000), set DecimalPlaces to 2. The default value is 6.

See Also

IScientificNumberFormat Interface | IFractionFormat Interface | AngleFormat Class | IAngleFormat Interface | IPercentageFormat Interface | ICustomNumberFormat Interface | CurrencyFormat Class | LatLonFormat Class | FractionFormat Class | IRateFormat Interface | RateFormat Class | ILatLonFormat2 Interface | NumericFormat Class | CustomNumberFormat Class | INumericFormat Interface | PercentageFormat Class | IScientificNumberFormat Interface | ILatLonFormat Interface | INumberFormat Interface | ScientificFormat Class

Example

ScientificFormat Example

 


Feedback Send feedback on this page