| AkCommonParseDecimal Method (String, Decimal) |
去除数值字符串的修饰并转换为decimal值。
如果转换失败则返回默认值。
Namespace: Appkit.CommonAssembly: Appkit (in Appkit.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static decimal ParseDecimal(
string s,
decimal defaultValue
)
Parameters
- s
- Type: SystemString
字符串。 - defaultValue
- Type: SystemDecimal
转换失败时的默认返回值。
Return Value
Type:
Decimaldecimal值。
See Also