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

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

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

Parameters

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

Return Value

Type: Double
Double值。
See Also