Click or drag to resize
AkCommonParseDecimal Method (String, Decimal)
去除数值字符串的修饰并转换为decimal值。

如果转换失败则返回默认值。

Namespace: Appkit.Common
Assembly: Appkit (in Appkit.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C#
public static decimal ParseDecimal(
	string s,
	decimal defaultValue
)

Parameters

s
Type: SystemString
字符串。
defaultValue
Type: SystemDecimal
转换失败时的默认返回值。

Return Value

Type: Decimal
decimal值。
See Also