[This is preliminary documentation and is subject to change.]
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static float AsFloat(
this string val,
float dflt = 0f
)
public static float AsFloat(
this string val,
float dflt = 0f
)
<ExtensionAttribute>
Public Shared Function AsFloat (
val As String,
Optional dflt As Single = 0F
) As Single
<ExtensionAttribute>
Public Shared Function AsFloat (
val As String,
Optional dflt As Single = 0F
) As Single
public:
[ExtensionAttribute]
static float AsFloat(
String^ val,
float dflt = 0f
)
public:
[ExtensionAttribute]
static float AsFloat(
String^ val,
float dflt = 0f
)
static member AsFloat :
val : string *
?dflt : float32
(* Defaults:
let _dflt = defaultArg dflt 0f
*)
-> float32
static member AsFloat :
val : string *
?dflt : float32
(* Defaults:
let _dflt = defaultArg dflt 0f
*)
-> float32
Return Value
Type:
SingleUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).