NFloat Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
NFloat is an immutable value type that represents a floating type that has the same size as the native integer size.
It is meant to be used as an exchange type at the managed/unmanaged boundary to accurately represent in managed code unmanaged APIs that use a type alias for C or C++'s float on 32-bit platforms or double on 64-bit platforms, such as the CGFloat type in libraries provided by Apple.
public value class NFloat : IComparable, IEquatable, IParsable, ISpanParsable, IUtf8SpanParsable, System::Numerics::IAdditionOperators, System::Numerics::IAdditiveIdentity, System::Numerics::IBinaryFloatingPointIeee754, System::Numerics::IBinaryNumber, System::Numerics::IBitwiseOperators, System::Numerics::IComparisonOperators, System::Numerics::IDecrementOperators, System::Numerics::IDivisionOperators, System::Numerics::IEqualityOperators, System::Numerics::IExponentialFunctions, System::Numerics::IFloatingPoint, System::Numerics::IFloatingPointConstants, System::Numerics::IFloatingPointIeee754, System::Numerics::IHyperbolicFunctions, System::Numerics::IIncrementOperators, System::Numerics::ILogarithmicFunctions, System::Numerics::IMinMaxValue, System::Numerics::IModulusOperators, System::Numerics::IMultiplicativeIdentity, System::Numerics::IMultiplyOperators, System::Numerics::INumber, System::Numerics::INumberBase, System::Numerics::IPowerFunctions, System::Numerics::IRootFunctions, System::Numerics::ISignedNumber, System::Numerics::ISubtractionOperators, System::Numerics::ITrigonometricFunctions, System::Numerics::IUnaryNegationOperators, System::Numerics::IUnaryPlusOperators
public value class NFloat : IEquatable
public value class NFloat : IComparable, IEquatable, IParsable, ISpanParsable, System::Numerics::IAdditionOperators, System::Numerics::IAdditiveIdentity, System::Numerics::IBinaryFloatingPointIeee754, System::Numerics::IBinaryNumber, System::Numerics::IBitwiseOperators, System::Numerics::IComparisonOperators, System::Numerics::IDecrementOperators, System::Numerics::IDivisionOperators, System::Numerics::IEqualityOperators, System::Numerics::IExponentialFunctions, System::Numerics::IFloatingPoint, System::Numerics::IFloatingPointConstants, System::Numerics::IFloatingPointIeee754, System::Numerics::IHyperbolicFunctions, System::Numerics::IIncrementOperators, System::Numerics::ILogarithmicFunctions, System::Numerics::IMinMaxValue, System::Numerics::IModulusOperators, System::Numerics::IMultiplicativeIdentity, System::Numerics::IMultiplyOperators, System::Numerics::INumber, System::Numerics::INumberBase, System::Numerics::IPowerFunctions, System::Numerics::IRootFunctions, System::Numerics::ISignedNumber, System::Numerics::ISubtractionOperators, System::Numerics::ITrigonometricFunctions, System::Numerics::IUnaryNegationOperators, System::Numerics::IUnaryPlusOperators
public readonly struct NFloat : IComparable, IEquatable, IParsable, ISpanParsable, IUtf8SpanParsable, System.Numerics.IAdditionOperators, System.Numerics.IAdditiveIdentity, System.Numerics.IBinaryFloatingPointIeee754, System.Numerics.IBinaryNumber, System.Numerics.IBitwiseOperators, System.Numerics.IComparisonOperators, System.Numerics.IDecrementOperators, System.Numerics.IDivisionOperators, System.Numerics.IEqualityOperators, System.Numerics.IExponentialFunctions, System.Numerics.IFloatingPoint, System.Numerics.IFloatingPointConstants, System.Numerics.IFloatingPointIeee754, System.Numerics.IHyperbolicFunctions, System.Numerics.IIncrementOperators, System.Numerics.ILogarithmicFunctions, System.Numerics.IMinMaxValue, System.Numerics.IModulusOperators, System.Numerics.IMultiplicativeIdentity, System.Numerics.IMultiplyOperators, System.Numerics.INumber, System.Numerics.INumberBase, System.Numerics.IPowerFunctions, System.Numerics.IRootFunctions, System.Numerics.ISignedNumber, System.Numerics.ISubtractionOperators, System.Numerics.ITrigonometricFunctions, System.Numerics.IUnaryNegationOperators, System.Numerics.IUnaryPlusOperators
public readonly struct NFloat : IEquatable
public readonly struct NFloat : IComparable, IEquatable, IParsable, ISpanParsable, System.Numerics.IAdditionOperators, System.Numerics.IAdditiveIdentity, System.Numerics.IBinaryFloatingPointIeee754, System.Numerics.IBinaryNumber, System.Numerics.IBitwiseOperators, System.Numerics.IComparisonOperators, System.Numerics.IDecrementOperators, System.Numerics.IDivisionOperators, System.Numerics.IEqualityOperators, System.Numerics.IExponentialFunctions, System.Numerics.IFloatingPoint, System.Numerics.IFloatingPointConstants, System.Numerics.IFloatingPointIeee754, System.Numerics.IHyperbolicFunctions, System.Numerics.IIncrementOperators, System.Numerics.ILogarithmicFunctions, System.Numerics.IMinMaxValue, System.Numerics.IModulusOperators, System.Numerics.IMultiplicativeIdentity, System.Numerics.IMultiplyOperators, System.Numerics.INumber, System.Numerics.INumberBase, System.Numerics.IPowerFunctions, System.Numerics.IRootFunctions, System.Numerics.ISignedNumber, System.Numerics.ISubtractionOperators, System.Numerics.ITrigonometricFunctions, System.Numerics.IUnaryNegationOperators, System.Numerics.IUnaryPlusOperators
type NFloat = struct
interface IFormattable
interface IParsable
interface ISpanFormattable
interface ISpanParsable
interface IAdditionOperators
interface IAdditiveIdentity
interface IBinaryFloatingPointIeee754
interface IUtf8SpanFormattable
interface IUtf8SpanParsable
interface IBinaryNumber
interface IBitwiseOperators
interface IComparisonOperators
interface IEqualityOperators
interface IDecrementOperators
interface IDivisionOperators
interface IIncrementOperators
interface IModulusOperators
interface IMultiplicativeIdentity
interface IMultiplyOperators
interface INumber
interface INumberBase
interface ISubtractionOperators
interface IUnaryNegationOperators
interface IUnaryPlusOperators
interface IExponentialFunctions
interface IFloatingPointConstants
interface IFloatingPoint
interface ISignedNumber
interface IFloatingPointIeee754
interface IHyperbolicFunctions
interface ILogarithmicFunctions
interface IPowerFunctions
interface IRootFunctions
interface ITrigonometricFunctions
interface IMinMaxValue
type NFloat = struct
type NFloat = struct
interface IFormattable
interface IParsable
interface ISpanFormattable
interface ISpanParsable
interface IAdditionOperators
interface IAdditiveIdentity
interface IBinaryFloatingPointIeee754
interface IBinaryNumber
interface IBitwiseOperators
interface IComparisonOperators
interface IEqualityOperators
interface IDecrementOperators
interface IDivisionOperators
interface IIncrementOperators
interface IModulusOperators
interface IMultiplicativeIdentity
interface IMultiplyOperators
interface INumber
interface INumberBase
interface ISubtractionOperators
interface IUnaryNegationOperators
interface IUnaryPlusOperators
interface IExponentialFunctions
interface IFloatingPointConstants
interface IFloatingPoint
interface ISignedNumber
interface IFloatingPointIeee754
interface IHyperbolicFunctions
interface ILogarithmicFunctions
interface IPowerFunctions
interface IRootFunctions
interface ITrigonometricFunctions
interface IMinMaxValue
type NFloat = struct
interface IFormattable
interface IParsable
interface ISpanFormattable
interface ISpanParsable
interface IAdditionOperators
interface IAdditiveIdentity
interface IBinaryFloatingPointIeee754
interface IBinaryNumber
interface IBitwiseOperators
interface IComparisonOperators
interface IEqualityOperators
interface IDecrementOperators
interface IDivisionOperators
interface IIncrementOperators
interface IModulusOperators
interface IMultiplicativeIdentity
interface IMultiplyOperators
interface INumber
interface INumberBase
interface ISubtractionOperators
interface IUnaryNegationOperators
interface IUnaryPlusOperators
interface IUtf8SpanFormattable
interface IUtf8SpanParsable
interface IExponentialFunctions
interface IFloatingPointConstants
interface IFloatingPoint
interface ISignedNumber
interface IFloatingPointIeee754
interface IHyperbolicFunctions
interface ILogarithmicFunctions
interface IPowerFunctions
interface IRootFunctions
interface ITrigonometricFunctions
interface IMinMaxValue
Public Structure NFloat
Implements IAdditionOperators(Of NFloat, NFloat, NFloat), IAdditiveIdentity(Of NFloat, NFloat), IBinaryFloatingPointIeee754(Of NFloat), IBinaryNumber(Of NFloat), IBitwiseOperators(Of NFloat, NFloat, NFloat), IComparable(Of NFloat), IComparisonOperators(Of NFloat, NFloat, Boolean), IDecrementOperators(Of NFloat), IDivisionOperators(Of NFloat, NFloat, NFloat), IEqualityOperators(Of NFloat, NFloat, Boolean), IEquatable(Of NFloat), IExponentialFunctions(Of NFloat), IFloatingPoint(Of NFloat), IFloatingPointConstants(Of NFloat), IFloatingPointIeee754(Of NFloat), IHyperbolicFunctions(Of NFloat), IIncrementOperators(Of NFloat), ILogarithmicFunctions(Of NFloat), IMinMaxValue(Of NFloat), IModulusOperators(Of NFloat, NFloat, NFloat), IMultiplicativeIdentity(Of NFloat, NFloat), IMultiplyOperators(Of NFloat, NFloat, NFloat), INumber(Of NFloat), INumberBase(Of NFloat), IParsable(Of NFloat), IPowerFunctions(Of NFloat), IRootFunctions(Of NFloat), ISignedNumber(Of NFloat), ISpanParsable(Of NFloat), ISubtractionOperators(Of NFloat, NFloat, NFloat), ITrigonometricFunctions(Of NFloat), IUnaryNegationOperators(Of NFloat, NFloat), IUnaryPlusOperators(Of NFloat, NFloat), IUtf8SpanParsable(Of NFloat)
Public Structure NFloat
Implements IEquatable(Of NFloat)
Public Structure NFloat
Implements IAdditionOperators(Of NFloat, NFloat, NFloat), IAdditiveIdentity(Of NFloat, NFloat), IBinaryFloatingPointIeee754(Of NFloat), IBinaryNumber(Of NFloat), IBitwiseOperators(Of NFloat, NFloat, NFloat), IComparable(Of NFloat), IComparisonOperators(Of NFloat, NFloat, Boolean), IDecrementOperators(Of NFloat), IDivisionOperators(Of NFloat, NFloat, NFloat), IEqualityOperators(Of NFloat, NFloat, Boolean), IEquatable(Of NFloat), IExponentialFunctions(Of NFloat), IFloatingPoint(Of NFloat), IFloatingPointConstants(Of NFloat), IFloatingPointIeee754(Of NFloat), IHyperbolicFunctions(Of NFloat), IIncrementOperators(Of NFloat), ILogarithmicFunctions(Of NFloat), IMinMaxValue(Of NFloat), IModulusOperators(Of NFloat, NFloat, NFloat), IMultiplicativeIdentity(Of NFloat, NFloat), IMultiplyOperators(Of NFloat, NFloat, NFloat), INumber(Of NFloat), INumberBase(Of NFloat), IParsable(Of NFloat), IPowerFunctions(Of NFloat), IRootFunctions(Of NFloat), ISignedNumber(Of NFloat), ISpanParsable(Of NFloat), ISubtractionOperators(Of NFloat, NFloat, NFloat), ITrigonometricFunctions(Of NFloat), IUnaryNegationOperators(Of NFloat, NFloat), IUnaryPlusOperators(Of NFloat, NFloat)
- Inheritance
- Implements
-
IComparable IComparable<NFloat> IComparable
IEquatable<NFloat> IEquatable IFormattable IParsable<NFloat> IParsable ISpanFormattable ISpanParsable<NFloat> ISpanParsable IUtf8SpanFormattable IUtf8SpanParsable<NFloat> IUtf8SpanParsable IAdditionOperators<NFloat,NFloat,NFloat> IAdditionOperators IAdditiveIdentity<NFloat,NFloat> IAdditiveIdentity IBinaryFloatingPointIeee754<NFloat> IBinaryNumber<NFloat> IBinaryNumber IBitwiseOperators<NFloat,NFloat,NFloat> IBitwiseOperators IComparisonOperators<NFloat,NFloat,Boolean> IComparisonOperators Boolean> IDecrementOperators<NFloat> IDecrementOperatorsIDivisionOperators<NFloat,NFloat,NFloat> IDivisionOperators IEqualityOperators<NFloat,NFloat,Boolean> IEqualityOperators IEqualityOperators Boolean> IExponentialFunctions<NFloat> IExponentialFunctionsIFloatingPoint<NFloat> IFloatingPoint IFloatingPointConstants<NFloat> IFloatingPointConstants IFloatingPointIeee754<NFloat> IFloatingPointIeee754 IHyperbolicFunctions<NFloat> IHyperbolicFunctions IIncrementOperators<NFloat> IIncrementOperators ILogarithmicFunctions<NFloat> ILogarithmicFunctions IMinMaxValue<NFloat> IModulusOperators<NFloat,NFloat,NFloat> IModulusOperators IMultiplicativeIdentity<NFloat,NFloat> IMultiplicativeIdentity IMultiplyOperators<NFloat,NFloat,NFloat> IMultiplyOperators INumber<NFloat> INumber INumberBase<NFloat> INumberBase IPowerFunctions<NFloat> IPowerFunctions IRootFunctions<NFloat> IRootFunctions ISignedNumber<NFloat> ISignedNumber ISubtractionOperators<NFloat,NFloat,NFloat> ISubtractionOperators ITrigonometricFunctions<NFloat> ITrigonometricFunctions IUnaryNegationOperators<NFloat,NFloat> IUnaryNegationOperators IUnaryPlusOperators<NFloat,NFloat> IUnaryPlusOperators
Remarks
It is meant to be used as an exchange type at the managed/unmanaged boundary to accurately represent in managed code unmanaged APIs that use a type alias for C or C++'s float on 32-bit platforms or double on 64-bit platforms, such as the CGFloat type in libraries provided by Apple.
Constructors
| Name | Description |
|---|---|
| NFloat(Double) |
Constructs an instance from a 64-bit floating point value. |
| NFloat(Single) |
Constructs an instance from a 32-bit floating point value. |
Properties
| Name | Description |
|---|---|
| E |
Gets the mathematical constant |
| Epsilon |
Represents the smallest positive NFloat value that is greater than zero. |
| MaxValue |
Represents the largest finite value of a NFloat. |
| MinValue |
Represents the smallest finite value of a NFloat. |
| NaN |
Represents a value that is not a number (NaN). |
| NegativeInfinity |
Represents negative infinity. |
| NegativeZero |
Gets a value that represents negative |
| Pi |
Gets the mathematical constant |
| PositiveInfinity |
Represents positive infinity. |
| Size |
Gets the size, in bytes, of an NFloat. |
| Tau |
Gets the mathematical constant |
| Value |
The underlying floating-point value of this instance. |
Methods
| Name | Description |
|---|---|
| Abs(NFloat) |
Computes the absolute of a value. |
| Acos(NFloat) |
Computes the arc-cosine of a value. |
| Acosh(NFloat) |
Computes the hyperbolic arc-cosine of a value. |
| AcosPi(NFloat) |
Computes the arc-cosine of a value and divides the result by |
| Asin(NFloat) |
Computes the arc-sine of a value. |
| Asinh(NFloat) |
Computes the hyperbolic arc-sine of a value. |
| AsinPi(NFloat) |
Computes the arc-sine of a value and divides the result by |
| Atan(NFloat) |
Computes the arc-tangent of a value. |
| Atan2(NFloat, NFloat) |
Computes the arc-tangent of the quotient of two values. |
| Atan2Pi(NFloat, NFloat) |
Computes the arc-tangent for the quotient of two values and divides the result by |
| Atanh(NFloat) |
Computes the hyperbolic arc-tangent of a value. |
| AtanPi(NFloat) |
Computes the arc-tangent of a value and divides the result by pi. |
| BitDecrement(NFloat) |
Decrements a value to the smallest value that compares less than a given value. |
| BitIncrement(NFloat) |
Increments a value to the smallest value that compares greater than a given value. |
| Cbrt(NFloat) |
Computes the cube-root of a value. |
| Ceiling(NFloat) |
Computes the ceiling of a value. |
| Clamp(NFloat, NFloat, NFloat) |
Clamps a value to an inclusive minimum and maximum value. |
| ClampNative(NFloat, NFloat, NFloat) |
Clamps a value to an inclusive minimum and maximum value using platform-specific behavior for |
| CompareTo(NFloat) |
Compares this instance to a specified floating-point number and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified floating-point number. |
| CompareTo(Object) |
Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. |
|
ConvertToInteger |
Converts a value to a specified integer type using saturation on overflow |
|
ConvertToIntegerNative |
Converts a value to a specified integer type using platform specific behavior on overflow. |
| CopySign(NFloat, NFloat) |
Copies the sign of a value to the sign of another value. |
| Cos(NFloat) |
Computes the cosine of a value. |
| Cosh(NFloat) |
Computes the hyperbolic cosine of a value. |
| CosPi(NFloat) |
Computes the cosine of a value that has been multipled by |
|
CreateChecked |
Creates an instance of the current type from a value, throwing an overflow exception for any values that fall outside the representable range of the current type. |
|
CreateSaturating |
Creates an instance of the current type from a value, saturating any values that fall outside the representable range of the current type. |
|
CreateTruncating |
Creates an instance of the current type from a value, truncating any values that fall outside the representable range of the current type. |
| DegreesToRadians(NFloat) |
Converts a given value from degrees to radians. |
| Equals(NFloat) |
Returns a value indicating whether this instance is equal to a specified CLong value. |
| Equals(Object) |
Returns a value indicating whether this instance is equal to a specified object. |
| Exp(NFloat) |
Computes |
| Exp10(NFloat) |
Computes |
| Exp10M1(NFloat) |
Computes |
| Exp2(NFloat) |
Computes |
| Exp2M1(NFloat) |
Computes |
| ExpM1(NFloat) |
Computes |
| Floor(NFloat) |
Computes the floor of a value. |
| FusedMultiplyAdd(NFloat, NFloat, NFloat) |
Computes the fused multiply-add of three values. |
| GetHashCode() |
Returns the hash code for this instance. |
| Hypot(NFloat, NFloat) |
Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle. |
| Ieee754Remainder(NFloat, NFloat) |
Computes the remainder of two values as specified by IEEE 754. |
| ILogB(NFloat) |
Computes the integer logarithm of a value. |
| IsEvenInteger(NFloat) |
Determines if a value represents an even integral number. |
| IsFinite(NFloat) |
Determines whether the specified value is finite (zero, subnormal, or normal). |
| IsInfinity(NFloat) |
Determines whether the specified value is infinite (positive or negative infinity). |
| IsInteger(NFloat) |
Determines if a value represents an integral number. |
| IsNaN(NFloat) |
Determines whether the specified value is NaN (not a number). |
| IsNegative(NFloat) |
Determines whether the specified value is negative. |
| IsNegativeInfinity(NFloat) |
Determines whether the specified value is negative infinity. |
| IsNormal(NFloat) |
Determines whether the specified value is normal. |
| IsOddInteger(NFloat) |
Determines if a value represents an odd integral number. |
| IsPositive(NFloat) |
Determines if a value is positive. |
| IsPositiveInfinity(NFloat) |
Determines whether the specified value is positive infinity. |
| IsPow2(NFloat) |
Determines if a value is a power of two. |
| IsRealNumber(NFloat) |
Determines if a value represents a real number. |
| IsSubnormal(NFloat) |
Determines whether the specified value is subnormal. |
| Lerp(NFloat, NFloat, NFloat) |
Performs a linear interpolation between two values based on the given weight. |
| Log(NFloat, NFloat) |
Computes the logarithm of a value in the specified base. |
| Log(NFloat) |
Computes the natural ( |
| Log10(NFloat) |
Computes the base-10 logarithm of a value. |
| Log10P1(NFloat) |
Computes the base-10 logarithm of a value plus one. |
| Log2(NFloat) |
Computes the log2 of a value. |
| Log2P1(NFloat) |
Computes the base-2 logarithm of a value plus one. |
| LogP1(NFloat) |
Computes the natural ( |
| Max(NFloat, NFloat) |
Compares two values to compute which is greater. |
| MaxMagnitude(NFloat, NFloat) |
Compares two values to compute which is greater. |
| MaxMagnitudeNumber(NFloat, NFloat) |
Compares two values to compute which has the greater magnitude and returning the other value if an input is |
| MaxNative(NFloat, NFloat) |
Compares two values to compute which is greater using platform-specific behavior for |
| MaxNumber(NFloat, NFloat) |
Compares two values to compute which is greater and returning the other value if an input is |
| Min(NFloat, NFloat) |
Compares two values to compute which is lesser. |
| MinMagnitude(NFloat, NFloat) |
Compares two values to compute which is lesser. |
| MinMagnitudeNumber(NFloat, NFloat) |
Compares two values to compute which has the lesser magnitude and returning the other value if an input is |
| MinNative(NFloat, NFloat) |
Compares two values to compute which is lesser using platform-specific behavior for |
| MinNumber(NFloat, NFloat) |
Compares two values to compute which is lesser and returning the other value if an input is |
| MultiplyAddEstimate(NFloat, NFloat, NFloat) |
Computes an estimate of ( |
|
Parse(ReadOnlySpan |
Parses a span of UTF-8 characters into a value. |
|
Parse(ReadOnlySpan |
Parses a span of UTF-8 characters into a value. |
|
Parse(ReadOnlySpan |
Parses a span of characters into a value. |
|
Parse(ReadOnlySpan |
Converts a character span that contains the string representation of a number in a specified style and culture-specific format to its floating-point number equivalent. |
| Parse(String, IFormatProvider) |
Converts the string representation of a number in a specified culture-specific format to its floating-point number equivalent. |
| Parse(String, NumberStyles, IFormatProvider) |
Converts the string representation of a number in a specified style and culture-specific format to its floating-point number equivalent. |
| Parse(String, NumberStyles) |
Converts the string representation of a number in a specified style to its floating-point number equivalent. |
| Parse(String) |
Converts the string representation of a number to its floating-point number equivalent. |
| Pow(NFloat, NFloat) |
Computes a value raised to a given power. |
| RadiansToDegrees(NFloat) |
Converts a given value from radians to degrees. |
| ReciprocalEstimate(NFloat) |
Computes an estimate of the reciprocal of a value. |
| ReciprocalSqrtEstimate(NFloat) |
Computes an estimate of the reciprocal square root of a value. |
| RootN(NFloat, Int32) |
Computes the n-th root of a value. |
| Round(NFloat, Int32, MidpointRounding) |
Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven). |
| Round(NFloat, Int32) |
Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven). |
| Round(NFloat, MidpointRounding) |
Rounds a value to the nearest integer using the specified rounding mode. |
| Round(NFloat) |
Rounds a value to the nearest integer using the default rounding mode (ToEven). |
| ScaleB(NFloat, Int32) |
Computes the product of a value and its base-radix raised to the specified power. |
| Sign(NFloat) |
Computes the sign of a value. |
| Sin(NFloat) |
Computes the sine of a value. |
| SinCos(NFloat) |
Computes the sine and cosine of a value. |
| SinCosPi(NFloat) |
Computes the sine and cosine of a value. |
| Sinh(NFloat) |
Computes the hyperbolic sine of a value. |
| SinPi(NFloat) |
Computes the sine of a value that has been multiplied by |
| Sqrt(NFloat) |
Computes the square-root of a value. |
| Tan(NFloat) |
Computes the tangent of a value. |
| Tanh(NFloat) |
Computes the hyperbolic tangent of a value. |
| TanPi(NFloat) |
Computes the tangent of a value that has been multipled by |
| ToString() |
Converts the numeric value of this instance to its equivalent string representation. |
| ToString(IFormatProvider) |
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. |
| ToString(String, IFormatProvider) |
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. |
| ToString(String) |
Converts the numeric value of this instance to its equivalent string representation using the specified format. |
| Truncate(NFloat) |
Truncates a value. |
|
TryFormat(Span |
Tries to format the value of the current instance as UTF-8 into the provided span of bytes. |
|
TryFormat(Span |
Tries to format the value of the current instance into the provided span of characters. |
|
TryParse(ReadOnlySpan |
Tries to parse a span of UTF-8 characters into a value. |
|
TryParse(ReadOnlySpan |
Tries to convert a UTF-8 character span containing the string representation of a number to its floating-point number equivalent. |
|
TryParse(ReadOnlySpan |
Tries to parse a span of UTF-8 characters into a value. |
|
TryParse(ReadOnlySpan |
Tries to parse a span of characters into a value. |
|
TryParse(ReadOnlySpan |
Tries to convert a character span containing the string representation of a number to its floating-point number equivalent. |
|
TryParse(ReadOnlySpan |
Tries to convert a character span containing the string representation of a number in a specified style and culture-specific format to its floating-point number equivalent. |
| TryParse(String, IFormatProvider, NFloat) |
Tries to parse a string into a value. |
| TryParse(String, NFloat) |
Tries to convert the string representation of a number to its floating-point number equivalent. |
| TryParse(String, NumberStyles, IFormatProvider, NFloat) |
Tries to convert the string representation of a number in a specified style and culture-specific format to its floating-point number equivalent. |
|
TryParsePartial(ReadOnlySpan |
|
|
TryParsePartial(ReadOnlySpan |
|
| TryParsePartial(String, NumberStyles, IFormatProvider, NFloat, Int32) | |
Operators
| Name | Description |
|---|---|
| Addition(NFloat, NFloat) |
Adds two values together to compute their sum. |
| CheckedExplicit(NFloat to Byte) | |
| Decrement(NFloat) |
Decrements a value. |
| Division(NFloat, NFloat) |
Divides two values together to compute their quotient. |
| Equality(NFloat, NFloat) |
Compares two values to determine equality. |
| Explicit(Decimal to NFloat) |
Explicitly converts a Decimal value to its nearest representable native-sized floating-point value. |
| Explicit(Double to NFloat) |
Explicitly converts a Double value to its nearest representable native-sized floating-point value. |
| Explicit(Int128 to NFloat) |
Explicitly converts a Int128 to its nearest representable native-sized floating-point value. |
| Explicit(NFloat to Byte) |
Explicitly converts a native-sized floating-point value to its nearest representable Byte value. |
| Explicit(NFloat to Char) |
Explicitly converts a native-sized floating-point value to its nearest representable Char value. |
| Explicit(NFloat to Decimal) |
Explicitly converts a native-sized floating-point value to its nearest representable Decimal value. |
| Explicit(NFloat to Half) |
Explicitly converts a native-sized floating-point value to its nearest representable Half value. |
| Explicit(NFloat to Int128) |
Explicitly converts a native-sized floating-point value to its nearest representable Int128 value. |
| Explicit(NFloat to Int16) |
Explicitly converts a native-sized floating-point value to its nearest representable Int16 value. |
| Explicit(NFloat to Int32) |
Explicitly converts a native-sized floating-point value to its nearest representable Int32 value. |
| Explicit(NFloat to Int64) |
Explicitly converts a native-sized floating-point value to its nearest representable Int64 value. |
| Explicit(NFloat to IntPtr) |
Explicitly converts a native-sized floating-point value to its nearest representable IntPtr value. |
| Explicit(NFloat to SByte) |
Explicitly converts a native-sized floating-point value to its nearest representable SByte value. |
| Explicit(NFloat to Single) |
Explicitly converts a native-sized floating-point value to its nearest representable Single value. |
| Explicit(NFloat to UInt128) |
Explicitly converts a native-sized floating-point value to its nearest representable UInt128 value. |
| Explicit(NFloat to UInt16) |
Explicitly converts a native-sized floating-point value to its nearest representable UInt16 value. |
| Explicit(NFloat to UInt32) |
Explicitly converts a native-sized floating-point value to its nearest representable UInt32 value. |
| Explicit(NFloat to UInt64) |
Explicitly converts a native-sized floating-point value to its nearest representable UInt64 value. |
| Explicit(NFloat to UIntPtr) |
Explicitly converts a native-sized floating-point value to its nearest representable UIntPtr value. |
| Explicit(UInt128 to NFloat) |
Explicitly converts UInt128 to its nearest representable native-sized floating-point value. |
| GreaterThan(NFloat, NFloat) |
Compares two values to determine which is greater. |
| GreaterThanOrEqual(NFloat, NFloat) |
Compares two values to determine which is greater or equal. |
| Implicit(Byte to NFloat) |
Implicitly converts a Byte value to its nearest representable native-sized floating-point value. |
| Implicit(Char to NFloat) |
Implicitly converts a Char value to its nearest representable native-sized floating-point value. |
| Implicit(Half to NFloat) |
Implicitly converts a Half value to its nearest representable native-sized floating-point value. |
| Implicit(Int16 to NFloat) |
Implicitly converts a Int16 value to its nearest representable native-sized floating-point value. |
| Implicit(Int32 to NFloat) |
Implicitly converts a Int32 value to its nearest representable native-sized floating-point value. |
| Implicit(Int64 to NFloat) |
Implicitly converts a Int64 value to its nearest representable native-sized floating-point value. |
| Implicit(IntPtr to NFloat) |
Implicitly converts a IntPtr value to its nearest representable native-sized floating-point value. |
| Implicit(NFloat to Double) |
Implicitly converts a native-sized floating-point value to its nearest representable Double value. |
| Implicit(SByte to NFloat) |
Implicitly converts a SByte value to its nearest representable native-sized floating-point value. |
| Implicit(Single to NFloat) |
Implicitly converts a Single value to its nearest representable native-sized floating-point value. |
| Implicit(UInt16 to NFloat) |
Implicitly converts a UInt16 value to its nearest representable native-sized floating-point value. |
| Implicit(UInt32 to NFloat) |
Implicitly converts a UInt32 value to its nearest representable native-sized floating-point value. |
| Implicit(UInt64 to NFloat) |
Implicitly converts a UInt64 value to its nearest representable native-sized floating-point value. |
| Implicit(UIntPtr to NFloat) |
Implicitly converts a UIntPtr value to its nearest representable native-sized floating-point value. |
| Increment(NFloat) |
Increments a value. |
| Inequality(NFloat, NFloat) |
Compares two values to determine inequality. |
| LessThan(NFloat, NFloat) |
Compares two values to determine which is less. |
| LessThanOrEqual(NFloat, NFloat) |
Compares two values to determine which is less or equal. |
| Modulus(NFloat, NFloat) |
Divides two values together to compute their remainder. |
| Multiply(NFloat, NFloat) |
Multiplies two values together to compute their product. |
| Subtraction(NFloat, NFloat) |
Subtracts two values to compute their difference. |
| UnaryNegation(NFloat) |
Computes the unary negation of a value. |
| UnaryPlus(NFloat) |
Computes the unary plus of a value. |
Explicit Interface Implementations
| Name | Description |
|---|---|
|
IAdditionOperators |
Adds two values together to compute their sum. |
|
IAdditiveIdentity |
Gets the additive identity of the current type. |
|
IBinaryNumber |
Gets an instance of the binary type in which all bits are set. |
|
IBitwiseOperators |
Computes the bitwise-and of two values. |
|
IBitwiseOperators |
Computes the bitwise-or of two values. |
|
IBitwiseOperators |
Computes the exclusive-or of two values. |
|
IBitwiseOperators |
Computes the ones-complement representation of a given value. |
|
IDecrementOperators |
Decrements a value. |
|
IDivisionOperators |
Divides two values to compute their quotient. |
|
IFloatingPoint |
Gets the number of bytes that will be written as part of TryWriteExponentLittleEndian(Span |
|
IFloatingPoint |
Gets the length, in bits, of the shortest two's complement representation of the current exponent. |
|
IFloatingPoint |
Gets the length, in bits, of the current significand. |
|
IFloatingPoint |
Gets the number of bytes that will be written as part of TryWriteSignificandLittleEndian(Span |
|
IFloatingPoint |
Tries to write the current exponent, in big-endian format, to a given span. |
|
IFloatingPoint |
Tries to write the current exponent, in little-endian format, to a given span. |
|
IFloatingPoint |
Tries to write the current significand, in big-endian format, to a given span. |
|
IFloatingPoint |
Tries to write the current significand, in little-endian format, to a given span. |
|
IIncrementOperators |
Increments a value. |
|
IMultiplicativeIdentity |
Gets the multiplicative identity of the current type. |
|
IMultiplyOperators |
Multiplies two values to compute their product. |
|
INumberBase |
Determines if a value is in its canonical representation. |
|
INumberBase |
Determines if a value represents a complex number. |
|
INumberBase |
Determines if a value represents a pure imaginary number. |
|
INumberBase |
Determines if a value is zero. |
|
INumberBase |
Gets the value |
|
INumberBase |
Gets the radix, or base, for the type. |
|
INumberBase |
|
|
INumberBase |
|
|
INumberBase |
|
|
INumberBase |
Tries to convert an instance of the the current type to another type, throwing an overflow exception for any values that fall outside the representable range of the current type. |
|
INumberBase |
Tries to convert an instance of the the current type to another type, saturating any values that fall outside the representable range of the current type. |
|
INumberBase |
Tries to convert an instance of the the current type to another type, truncating any values that fall outside the representable range of the current type. |
|
INumberBase |
Gets the value |
|
ISignedNumber |
Gets the value |
|
ISubtractionOperators |
Subtracts two values to compute their difference. |
|
IUnaryNegationOperators |
Computes the checked unary negation of a value. |