ArcObjects Library Reference (System)  

INumberFormat.ValueToString Method

Converts a numeric value to a formatted string.

[Visual Basic .NET]
Public Function ValueToString ( _
    ByVal Value As Double _
) As String
[C#]
public string ValueToString (
    double Value
);
[C++]
HRESULT ValueToString(
  double Value,
  BSTR* str
);
[C++]

Parameters

Value [in]   Value is a parameter of type double str [out, retval]   str is a parameter of type BSTR

Product Availability

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

Description

The ValueToString method expresses a numeric value as a formatted string. The string is formatted based on the property settings of the number formatting interface that is used. See the particular number formatting interface you're interested in under See Also above for more information.

See Also

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

.NET Snippets

Decimal Degree Angle Radian Example | Currency Format Example | Convert Decimal Degree To Radian | Convert Double To Currency