StringExtensions.Dec(this string str) Method
.NET Standard 2.x
Converts a string to a decimal number.
Namespace: PowerScript.Bridge
Assembly: PowerScript.Bridge.dll
Syntax
public static decimal? Dec(this string str);
Parameters
str
System.String
A string whose value you want returned as a decimal value.
Returns
System.Decimal
Returns the value of string as a decimal. If str is not a valid number or if it contains an incompatible datatype, Dec
returns 0
. If str is null
, Dec
returns null
.
Examples
Coming soon.
Applies to
.NET Standard
2.x