ConvertHelperToFloat Method |
将类型装换为float类型
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public static float ToFloat(
Object obj,
float defaultValue = 0f
)
Public Shared Function ToFloat (
obj As Object,
Optional defaultValue As Single = 0F
) As Single
public:
static float ToFloat(
Object^ obj,
float defaultValue = 0f
)
static member ToFloat :
obj : Object *
?defaultValue : float32
(* Defaults:
let _defaultValue = defaultArg defaultValue 0f
*)
-> float32
Parameters
- obj
- Type: SystemObject
object类型 - defaultValue (Optional)
- Type: SystemSingle
默认值
Return Value
Type:
Singlefloat类型
See Also