NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal.FromString

Converts a string to a Decimal.

[Visual Basic]
Public Shared Function FromString( _
   ByVal s As String _
) As Decimal
[C#]
public static Decimal FromString(
   string s
);
[C++]
public: static Decimal FromString(
   String* s
);
[JScript]
public static function FromString(
   s : String
) : Decimal;

Parameters

s
The string to convert to a Decimal.

Return Value

The Decimal value of the string.

Remarks

Converts a string to a Decimal. The string must consist of an optional minus sign ("-") followed by a sequence of digits ("0"- "9"). The sequence of digits may optionally contain a single decimal point (".") character. (For related information, see Parse.)

Leading and trailing white space characters are allowed.

See Also

Decimal Structure | Decimal Members | System Namespace