Share via


PathBuilder.ParseFloat(String) Method

Definition

Parses a string value as a float using invariant culture.

public:
 static float ParseFloat(System::String ^ value);
public static float ParseFloat(string value);
static member ParseFloat : string -> single
Public Shared Function ParseFloat (value As String) As Single

Parameters

value
String

The string representation of a number.

Returns

The float value parsed from the string.

Exceptions

Thrown when the string cannot be parsed as a float.

Remarks

Handles special cases like Illustrator's malformed number formats (e.g., "5.96.88").

Applies to