Click or drag to resize

HalfTypeParse(String, NumberStyles) Method

Converts the string representation of a number in a specified style to its System.Half equivalent.

Namespace: NeoAxis
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static HalfType Parse(
	string value,
	NumberStyles style
)

Parameters

value  String
The string representation of the number to convert.
style  NumberStyles
A bitwise combination of System.Globalization.NumberStyles values that indicates the style elements that can be present in value. A typical value to specify is System.Globalization.NumberStyles.Number.

Return Value

HalfType
The System.Half number equivalent to the number contained in s as specified by style.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentException style is not a System.Globalization.NumberStyles value. -or- style is the System.Globalization.NumberStyles.AllowHexSpecifier value.
FormatExceptionvalue is not in the correct format.
OverflowExceptionvalue represents a number less than System.Half.MinValue or greater than System.Half.MaxValue.
See Also