Edit

Share via


StringExtensions.IsDecimal(String) Method

Definition

Determines whether a string is a valid decimal number.

public static bool IsDecimal (this string? str);
static member IsDecimal : string -> bool
<Extension()>
Public Function IsDecimal (str As String) As Boolean

Parameters

str
String

The string to test.

Returns

true for a valid decimal number; otherwise, false.

Applies to