Single Struct

Definition

Represents a single-precision floating-point number.

public value class float : IComparable, IComparable<float>, IConvertible, IEquatable<float>, IFormattable
public value class float : IComparable, IComparable<float>, IConvertible, IEquatable<float>, ISpanFormattable
public value class float : IComparable<float>, IConvertible, IEquatable<float>, IParsable<float>, ISpanParsable<float>, System::Numerics::IAdditionOperators<float, float, float>, System::Numerics::IAdditiveIdentity<float, float>, System::Numerics::IBinaryFloatingPointIeee754<float>, System::Numerics::IBinaryNumber<float>, System::Numerics::IBitwiseOperators<float, float, float>, System::Numerics::IComparisonOperators<float, float, bool>, System::Numerics::IDecrementOperators<float>, System::Numerics::IDivisionOperators<float, float, float>, System::Numerics::IEqualityOperators<float, float, bool>, System::Numerics::IExponentialFunctions<float>, System::Numerics::IFloatingPoint<float>, System::Numerics::IFloatingPointConstants<float>, System::Numerics::IFloatingPointIeee754<float>, System::Numerics::IHyperbolicFunctions<float>, System::Numerics::IIncrementOperators<float>, System::Numerics::ILogarithmicFunctions<float>, System::Numerics::IMinMaxValue<float>, System::Numerics::IModulusOperators<float, float, float>, System::Numerics::IMultiplicativeIdentity<float, float>, System::Numerics::IMultiplyOperators<float, float, float>, System::Numerics::INumber<float>, System::Numerics::INumberBase<float>, System::Numerics::IPowerFunctions<float>, System::Numerics::IRootFunctions<float>, System::Numerics::ISignedNumber<float>, System::Numerics::ISubtractionOperators<float, float, float>, System::Numerics::ITrigonometricFunctions<float>, System::Numerics::IUnaryNegationOperators<float, float>, System::Numerics::IUnaryPlusOperators<float, float>
public value class float : IComparable<float>, IConvertible, IEquatable<float>, IParsable<float>, ISpanParsable<float>, IUtf8SpanParsable<float>, System::Numerics::IAdditionOperators<float, float, float>, System::Numerics::IAdditiveIdentity<float, float>, System::Numerics::IBinaryFloatingPointIeee754<float>, System::Numerics::IBinaryNumber<float>, System::Numerics::IBitwiseOperators<float, float, float>, System::Numerics::IComparisonOperators<float, float, bool>, System::Numerics::IDecrementOperators<float>, System::Numerics::IDivisionOperators<float, float, float>, System::Numerics::IEqualityOperators<float, float, bool>, System::Numerics::IExponentialFunctions<float>, System::Numerics::IFloatingPoint<float>, System::Numerics::IFloatingPointConstants<float>, System::Numerics::IFloatingPointIeee754<float>, System::Numerics::IHyperbolicFunctions<float>, System::Numerics::IIncrementOperators<float>, System::Numerics::ILogarithmicFunctions<float>, System::Numerics::IMinMaxValue<float>, System::Numerics::IModulusOperators<float, float, float>, System::Numerics::IMultiplicativeIdentity<float, float>, System::Numerics::IMultiplyOperators<float, float, float>, System::Numerics::INumber<float>, System::Numerics::INumberBase<float>, System::Numerics::IPowerFunctions<float>, System::Numerics::IRootFunctions<float>, System::Numerics::ISignedNumber<float>, System::Numerics::ISubtractionOperators<float, float, float>, System::Numerics::ITrigonometricFunctions<float>, System::Numerics::IUnaryNegationOperators<float, float>, System::Numerics::IUnaryPlusOperators<float, float>
public value class float : IComparable, IConvertible, IFormattable
public value class float : IComparable, IComparable<float>, IEquatable<float>, IFormattable
public struct Single : IComparable, IComparable<float>, IConvertible, IEquatable<float>, IFormattable
public readonly struct Single : IComparable, IComparable<float>, IConvertible, IEquatable<float>, IFormattable
public readonly struct Single : IComparable, IComparable<float>, IConvertible, IEquatable<float>, ISpanFormattable
public readonly struct Single : IComparable<float>, IConvertible, IEquatable<float>, IParsable<float>, ISpanParsable<float>, System.Numerics.IAdditionOperators<float,float,float>, System.Numerics.IAdditiveIdentity<float,float>, System.Numerics.IBinaryFloatingPointIeee754<float>, System.Numerics.IBinaryNumber<float>, System.Numerics.IBitwiseOperators<float,float,float>, System.Numerics.IComparisonOperators<float,float,bool>, System.Numerics.IDecrementOperators<float>, System.Numerics.IDivisionOperators<float,float,float>, System.Numerics.IEqualityOperators<float,float,bool>, System.Numerics.IExponentialFunctions<float>, System.Numerics.IFloatingPoint<float>, System.Numerics.IFloatingPointConstants<float>, System.Numerics.IFloatingPointIeee754<float>, System.Numerics.IHyperbolicFunctions<float>, System.Numerics.IIncrementOperators<float>, System.Numerics.ILogarithmicFunctions<float>, System.Numerics.IMinMaxValue<float>, System.Numerics.IModulusOperators<float,float,float>, System.Numerics.IMultiplicativeIdentity<float,float>, System.Numerics.IMultiplyOperators<float,float,float>, System.Numerics.INumber<float>, System.Numerics.INumberBase<float>, System.Numerics.IPowerFunctions<float>, System.Numerics.IRootFunctions<float>, System.Numerics.ISignedNumber<float>, System.Numerics.ISubtractionOperators<float,float,float>, System.Numerics.ITrigonometricFunctions<float>, System.Numerics.IUnaryNegationOperators<float,float>, System.Numerics.IUnaryPlusOperators<float,float>
public readonly struct Single : IComparable<float>, IConvertible, IEquatable<float>, IParsable<float>, ISpanParsable<float>, IUtf8SpanParsable<float>, System.Numerics.IAdditionOperators<float,float,float>, System.Numerics.IAdditiveIdentity<float,float>, System.Numerics.IBinaryFloatingPointIeee754<float>, System.Numerics.IBinaryNumber<float>, System.Numerics.IBitwiseOperators<float,float,float>, System.Numerics.IComparisonOperators<float,float,bool>, System.Numerics.IDecrementOperators<float>, System.Numerics.IDivisionOperators<float,float,float>, System.Numerics.IEqualityOperators<float,float,bool>, System.Numerics.IExponentialFunctions<float>, System.Numerics.IFloatingPoint<float>, System.Numerics.IFloatingPointConstants<float>, System.Numerics.IFloatingPointIeee754<float>, System.Numerics.IHyperbolicFunctions<float>, System.Numerics.IIncrementOperators<float>, System.Numerics.ILogarithmicFunctions<float>, System.Numerics.IMinMaxValue<float>, System.Numerics.IModulusOperators<float,float,float>, System.Numerics.IMultiplicativeIdentity<float,float>, System.Numerics.IMultiplyOperators<float,float,float>, System.Numerics.INumber<float>, System.Numerics.INumberBase<float>, System.Numerics.IPowerFunctions<float>, System.Numerics.IRootFunctions<float>, System.Numerics.ISignedNumber<float>, System.Numerics.ISubtractionOperators<float,float,float>, System.Numerics.ITrigonometricFunctions<float>, System.Numerics.IUnaryNegationOperators<float,float>, System.Numerics.IUnaryPlusOperators<float,float>
[System.Serializable]
public struct Single : IComparable, IConvertible, IFormattable
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct Single : IComparable, IComparable<float>, IConvertible, IEquatable<float>, IFormattable
public struct Single : IComparable, IComparable<float>, IEquatable<float>, IFormattable
type single = struct
    interface IConvertible
    interface IFormattable
type single = struct
    interface IConvertible
    interface ISpanFormattable
    interface IFormattable
type single = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<single>
    interface ISpanFormattable
    interface ISpanParsable<single>
    interface IAdditionOperators<single, single, single>
    interface IAdditiveIdentity<single, single>
    interface IBinaryFloatingPointIeee754<single>
    interface IBinaryNumber<single>
    interface IBitwiseOperators<single, single, single>
    interface IComparisonOperators<single, single, bool>
    interface IEqualityOperators<single, single, bool>
    interface IDecrementOperators<single>
    interface IDivisionOperators<single, single, single>
    interface IIncrementOperators<single>
    interface IModulusOperators<single, single, single>
    interface IMultiplicativeIdentity<single, single>
    interface IMultiplyOperators<single, single, single>
    interface INumber<single>
    interface INumberBase<single>
    interface ISubtractionOperators<single, single, single>
    interface IUnaryNegationOperators<single, single>
    interface IUnaryPlusOperators<single, single>
    interface IExponentialFunctions<single>
    interface IFloatingPointConstants<single>
    interface IFloatingPoint<single>
    interface ISignedNumber<single>
    interface IFloatingPointIeee754<single>
    interface IHyperbolicFunctions<single>
    interface ILogarithmicFunctions<single>
    interface IPowerFunctions<single>
    interface IRootFunctions<single>
    interface ITrigonometricFunctions<single>
    interface IMinMaxValue<single>
type single = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<single>
    interface ISpanFormattable
    interface ISpanParsable<single>
    interface IAdditionOperators<single, single, single>
    interface IAdditiveIdentity<single, single>
    interface IBinaryFloatingPointIeee754<single>
    interface IBinaryNumber<single>
    interface IBitwiseOperators<single, single, single>
    interface IComparisonOperators<single, single, bool>
    interface IEqualityOperators<single, single, bool>
    interface IDecrementOperators<single>
    interface IDivisionOperators<single, single, single>
    interface IIncrementOperators<single>
    interface IModulusOperators<single, single, single>
    interface IMultiplicativeIdentity<single, single>
    interface IMultiplyOperators<single, single, single>
    interface INumber<single>
    interface INumberBase<single>
    interface ISubtractionOperators<single, single, single>
    interface IUnaryNegationOperators<single, single>
    interface IUnaryPlusOperators<single, single>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<single>
    interface IExponentialFunctions<single>
    interface IFloatingPointConstants<single>
    interface IFloatingPoint<single>
    interface ISignedNumber<single>
    interface IFloatingPointIeee754<single>
    interface IHyperbolicFunctions<single>
    interface ILogarithmicFunctions<single>
    interface IPowerFunctions<single>
    interface IRootFunctions<single>
    interface ITrigonometricFunctions<single>
    interface IMinMaxValue<single>
type single = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<single>
    interface ISpanFormattable
    interface ISpanParsable<single>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<single>
    interface IAdditionOperators<single, single, single>
    interface IAdditiveIdentity<single, single>
    interface IBinaryFloatingPointIeee754<single>
    interface IBinaryNumber<single>
    interface IBitwiseOperators<single, single, single>
    interface IComparisonOperators<single, single, bool>
    interface IEqualityOperators<single, single, bool>
    interface IDecrementOperators<single>
    interface IDivisionOperators<single, single, single>
    interface IIncrementOperators<single>
    interface IModulusOperators<single, single, single>
    interface IMultiplicativeIdentity<single, single>
    interface IMultiplyOperators<single, single, single>
    interface INumber<single>
    interface INumberBase<single>
    interface ISubtractionOperators<single, single, single>
    interface IUnaryNegationOperators<single, single>
    interface IUnaryPlusOperators<single, single>
    interface IExponentialFunctions<single>
    interface IFloatingPointConstants<single>
    interface IFloatingPoint<single>
    interface ISignedNumber<single>
    interface IFloatingPointIeee754<single>
    interface IHyperbolicFunctions<single>
    interface ILogarithmicFunctions<single>
    interface IPowerFunctions<single>
    interface IRootFunctions<single>
    interface ITrigonometricFunctions<single>
    interface IMinMaxValue<single>
[<System.Serializable>]
type single = struct
    interface IFormattable
    interface IConvertible
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type single = struct
    interface IFormattable
    interface IConvertible
type single = struct
    interface IFormattable
Public Structure Single
Implements IComparable, IComparable(Of Single), IConvertible, IEquatable(Of Single), IFormattable
Public Structure Single
Implements IComparable, IComparable(Of Single), IConvertible, IEquatable(Of Single), ISpanFormattable
Public Structure Single
Implements IAdditionOperators(Of Single, Single, Single), IAdditiveIdentity(Of Single, Single), IBinaryFloatingPointIeee754(Of Single), IBinaryNumber(Of Single), IBitwiseOperators(Of Single, Single, Single), IComparable(Of Single), IComparisonOperators(Of Single, Single, Boolean), IConvertible, IDecrementOperators(Of Single), IDivisionOperators(Of Single, Single, Single), IEqualityOperators(Of Single, Single, Boolean), IEquatable(Of Single), IExponentialFunctions(Of Single), IFloatingPoint(Of Single), IFloatingPointConstants(Of Single), IFloatingPointIeee754(Of Single), IHyperbolicFunctions(Of Single), IIncrementOperators(Of Single), ILogarithmicFunctions(Of Single), IMinMaxValue(Of Single), IModulusOperators(Of Single, Single, Single), IMultiplicativeIdentity(Of Single, Single), IMultiplyOperators(Of Single, Single, Single), INumber(Of Single), INumberBase(Of Single), IParsable(Of Single), IPowerFunctions(Of Single), IRootFunctions(Of Single), ISignedNumber(Of Single), ISpanParsable(Of Single), ISubtractionOperators(Of Single, Single, Single), ITrigonometricFunctions(Of Single), IUnaryNegationOperators(Of Single, Single), IUnaryPlusOperators(Of Single, Single)
Public Structure Single
Implements IAdditionOperators(Of Single, Single, Single), IAdditiveIdentity(Of Single, Single), IBinaryFloatingPointIeee754(Of Single), IBinaryNumber(Of Single), IBitwiseOperators(Of Single, Single, Single), IComparable(Of Single), IComparisonOperators(Of Single, Single, Boolean), IConvertible, IDecrementOperators(Of Single), IDivisionOperators(Of Single, Single, Single), IEqualityOperators(Of Single, Single, Boolean), IEquatable(Of Single), IExponentialFunctions(Of Single), IFloatingPoint(Of Single), IFloatingPointConstants(Of Single), IFloatingPointIeee754(Of Single), IHyperbolicFunctions(Of Single), IIncrementOperators(Of Single), ILogarithmicFunctions(Of Single), IMinMaxValue(Of Single), IModulusOperators(Of Single, Single, Single), IMultiplicativeIdentity(Of Single, Single), IMultiplyOperators(Of Single, Single, Single), INumber(Of Single), INumberBase(Of Single), IParsable(Of Single), IPowerFunctions(Of Single), IRootFunctions(Of Single), ISignedNumber(Of Single), ISpanParsable(Of Single), ISubtractionOperators(Of Single, Single, Single), ITrigonometricFunctions(Of Single), IUnaryNegationOperators(Of Single, Single), IUnaryPlusOperators(Of Single, Single), IUtf8SpanParsable(Of Single)
Public Structure Single
Implements IComparable, IConvertible, IFormattable
Public Structure Single
Implements IComparable, IComparable(Of Single), IEquatable(Of Single), IFormattable
Inheritance
Single
Attributes
Implements
IComparable IComparable<Single> IConvertible IEquatable<Single> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<Single> IParsable<TSelf> ISpanParsable<Single> ISpanParsable<TSelf> IAdditionOperators<Single,Single,Single> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<Single,Single> IAdditiveIdentity<TSelf,TSelf> IBinaryFloatingPointIeee754<Single> IBinaryNumber<Single> IBinaryNumber<TSelf> IBitwiseOperators<Single,Single,Single> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<Single,Single,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<Single> IDecrementOperators<TSelf> IDivisionOperators<Single,Single,Single> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<Single,Single,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IExponentialFunctions<Single> IExponentialFunctions<TSelf> IFloatingPoint<Single> IFloatingPoint<TSelf> IFloatingPointConstants<Single> IFloatingPointConstants<TSelf> IFloatingPointIeee754<Single> IFloatingPointIeee754<TSelf> IHyperbolicFunctions<Single> IHyperbolicFunctions<TSelf> IIncrementOperators<Single> IIncrementOperators<TSelf> ILogarithmicFunctions<Single> ILogarithmicFunctions<TSelf> IMinMaxValue<Single> IModulusOperators<Single,Single,Single> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<Single,Single> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<Single,Single,Single> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<Single> INumber<TSelf> INumberBase<Single> INumberBase<TSelf> IPowerFunctions<Single> IPowerFunctions<TSelf> IRootFunctions<Single> IRootFunctions<TSelf> ISignedNumber<Single> ISignedNumber<TSelf> ISubtractionOperators<Single,Single,Single> ISubtractionOperators<TSelf,TSelf,TSelf> ITrigonometricFunctions<Single> ITrigonometricFunctions<TSelf> IUnaryNegationOperators<Single,Single> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<Single,Single> IUnaryPlusOperators<TSelf,TSelf> IUtf8SpanFormattable IUtf8SpanParsable<Single> IUtf8SpanParsable<TSelf>

Remarks

For more information about this API, see Supplemental API remarks for Single.

Fields

E

Represents the natural logarithmic base, specified by the constant, e.

Epsilon

Represents the smallest positive Single value that is greater than zero. This field is constant.

MaxValue

Represents the largest possible value of Single. This field is constant.

MinValue

Represents the smallest possible value of Single. This field is constant.

NaN

Represents not a number (NaN). This field is constant.

NegativeInfinity

Represents negative infinity. This field is constant.

NegativeZero

Represents the number negative zero (-0).

Pi

Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

PositiveInfinity

Represents positive infinity. This field is constant.

Tau

Represents the number of radians in one turn, specified by the constant, Ï„.

Methods

Abs(Single)

Computes the absolute of a value.

Acos(Single)

Computes the arc-cosine of a value.

Acosh(Single)

Computes the hyperbolic arc-cosine of a value.

AcosPi(Single)

Computes the arc-cosine of a value and divides the result by pi.

Asin(Single)

Computes the arc-sine of a value.

Asinh(Single)

Computes the hyperbolic arc-sine of a value.

AsinPi(Single)

Computes the arc-sine of a value and divides the result by pi.

Atan(Single)

Computes the arc-tangent of a value.

Atan2(Single, Single)

Computes the arc-tangent of the quotient of two values.

Atan2Pi(Single, Single)

Computes the arc-tangent for the quotient of two values and divides the result by pi.

Atanh(Single)

Computes the hyperbolic arc-tangent of a value.

AtanPi(Single)

Computes the arc-tangent of a value and divides the result by pi.

BitDecrement(Single)

Decrements a value to the smallest value that compares less than a given value.

BitIncrement(Single)

Increments a value to the smallest value that compares greater than a given value.

Cbrt(Single)

Computes the cube-root of a value.

Ceiling(Single)

Computes the ceiling of a value.

Clamp(Single, Single, Single)

Clamps a value to an inclusive minimum and maximum value.

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.

CompareTo(Single)

Compares this instance to a specified single-precision 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 single-precision floating-point number.

CopySign(Single, Single)

Copies the sign of a value to the sign of another value.

Cos(Single)

Computes the cosine of a value.

Cosh(Single)

Computes the hyperbolic cosine of a value.

CosPi(Single)

Computes the cosine of a value that has been multipled by pi.

CreateChecked<TOther>(TOther)

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<TOther>(TOther)

Creates an instance of the current type from a value, saturating any values that fall outside the representable range of the current type.

CreateTruncating<TOther>(TOther)

Creates an instance of the current type from a value, truncating any values that fall outside the representable range of the current type.

DegreesToRadians(Single)

Converts a given value from degrees to radians.

Equals(Object)

Returns a value indicating whether this instance is equal to a specified object.

Equals(Single)

Returns a value indicating whether this instance and a specified Single object represent the same value.

Exp(Single)

Computes E raised to a given power.

Exp10(Single)

Computes 10 raised to a given power.

Exp10M1(Single)

Computes 10 raised to a given power and subtracts one.

Exp2(Single)

Computes 2 raised to a given power.

Exp2M1(Single)

Computes 2 raised to a given power and subtracts one.

ExpM1(Single)

Computes E raised to a given power and subtracts one.

Floor(Single)

Computes the floor of a value.

FusedMultiplyAdd(Single, Single, Single)

Computes the fused multiply-add of three values.

GetHashCode()

Returns the hash code for this instance.

GetTypeCode()

Returns the TypeCode for value type Single.

Hypot(Single, Single)

Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle.

Ieee754Remainder(Single, Single)

Computes the remainder of two values as specified by IEEE 754.

ILogB(Single)

Computes the integer logarithm of a value.

IsEvenInteger(Single)

Determines if a value represents an even integral number.

IsFinite(Single)

Determines whether the specified value is finite (zero, subnormal or normal).

IsInfinity(Single)

Returns a value indicating whether the specified number evaluates to negative or positive infinity.

IsInteger(Single)

Determines if a value represents an integral value.

IsNaN(Single)

Returns a value that indicates whether the specified value is not a number (NaN).

IsNegative(Single)

Determines whether the specified value is negative.

IsNegativeInfinity(Single)

Returns a value indicating whether the specified number evaluates to negative infinity.

IsNormal(Single)

Determines whether the specified value is normal.

IsOddInteger(Single)

Determines if a value represents an odd integral number.

IsPositive(Single)

Determines if a value is positive.

IsPositiveInfinity(Single)

Returns a value indicating whether the specified number evaluates to positive infinity.

IsPow2(Single)

Determines if a value is a power of two.

IsRealNumber(Single)

Determines if a value represents a real number.

IsSubnormal(Single)

Determines whether the specified value is subnormal.

Lerp(Single, Single, Single)

Performs a linear interpolation between two values based on the given weight.

Log(Single)

Computes the natural (base-E logarithm of a value.

Log(Single, Single)

Computes the logarithm of a value in the specified base.

Log10(Single)

Computes the base-10 logarithm of a value.

Log10P1(Single)

Computes the base-10 logarithm of a value plus one.

Log2(Single)

Computes the log2 of a value.

Log2P1(Single)

Computes the base-2 logarithm of a value plus one.

LogP1(Single)

Computes the natural (base-E) logarithm of a value plus one.

Max(Single, Single)

Compares two values to compute which is greater.

MaxMagnitude(Single, Single)

Compares two values to compute which is greater.

MaxMagnitudeNumber(Single, Single)

Compares two values to compute which has the greater magnitude and returning the other value if an input is NaN.

MaxNumber(Single, Single)

Compares two values to compute which is greater and returning the other value if an input is NaN.

Min(Single, Single)

Compares two values to compute which is lesser.

MinMagnitude(Single, Single)

Compares two values to compute which is lesser.

MinMagnitudeNumber(Single, Single)

Compares two values to compute which has the lesser magnitude and returning the other value if an input is NaN.

MinNumber(Single, Single)

Compares two values to compute which is lesser and returning the other value if an input is NaN.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Parses a span of UTF-8 characters into a value.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Parses a span of UTF-8 characters into a value.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Parses a span of characters into a value.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Converts a character span that contains the string representation of a number in a specified style and culture-specific format to its single-precision floating-point number equivalent.

Parse(String)

Converts the string representation of a number to its single-precision floating-point number equivalent.

Parse(String, IFormatProvider)

Converts the string representation of a number in a specified culture-specific format to its single-precision floating-point number equivalent.

Parse(String, NumberStyles)

Converts the string representation of a number in a specified style to its single-precision 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 single-precision floating-point number equivalent.

Pow(Single, Single)

Computes a value raised to a given power.

RadiansToDegrees(Single)

Converts a given value from radians to degrees.

ReciprocalEstimate(Single)

Computes an estimate of the reciprocal of a value.

ReciprocalSqrtEstimate(Single)

Computes an estimate of the reciprocal square root of a value.

RootN(Single, Int32)

Computes the n-th root of a value.

Round(Single)

Rounds a value to the nearest integer using the default rounding mode (ToEven).

Round(Single, Int32)

Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven).

Round(Single, Int32, MidpointRounding)

Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven).

Round(Single, MidpointRounding)

Rounds a value to the nearest integer using the specified rounding mode.

ScaleB(Single, Int32)

Computes the product of a value and its base-radix raised to the specified power.

Sign(Single)

Computes the sign of a value.

Sin(Single)

Computes the sine of a value.

SinCos(Single)

Computes the sine and cosine of a value.

SinCosPi(Single)

Computes the sine and cosine of a value.

Sinh(Single)

Computes the hyperbolic sine of a value.

SinPi(Single)

Computes the sine of a value that has been multiplied by pi.

Sqrt(Single)

Computes the square-root of a value.

Tan(Single)

Computes the tangent of a value.

Tanh(Single)

Computes the hyperbolic tangent of a value.

TanPi(Single)

Computes the tangent of a value that has been multipled by pi.

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)

Converts the numeric value of this instance to its equivalent string representation, using the specified format.

ToString(String, IFormatProvider)

Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.

Truncate(Single)

Truncates a value.

TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Tries to format the value of the current instance as UTF-8 into the provided span of bytes.

TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Tries to format the value of the current float number instance into the provided span of characters.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Single)

Tries to parse a span of UTF-8 characters into a value.

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Single)

Tries to parse a span of UTF-8 characters into a value.

TryParse(ReadOnlySpan<Byte>, Single)

Tries to convert a UTF-8 character span containing the string representation of a number to its single-precision floating-point number equivalent.

TryParse(ReadOnlySpan<Char>, IFormatProvider, Single)

Tries to parse a span of characters into a value.

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Single)

Converts the span representation of a number in a specified style and culture-specific format to its single-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed.

TryParse(ReadOnlySpan<Char>, Single)

Converts the string representation of a number in a character span to its single-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed.

TryParse(String, IFormatProvider, Single)

Tries to parse a string into a value.

TryParse(String, NumberStyles, IFormatProvider, Single)

Converts the string representation of a number in a specified style and culture-specific format to its single-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed.

TryParse(String, Single)

Converts the string representation of a number to its single-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed.

Operators

Equality(Single, Single)

Returns a value that indicates whether two specified Single values are equal.

GreaterThan(Single, Single)

Returns a value that indicates whether a specified Single value is greater than another specified Single value.

GreaterThanOrEqual(Single, Single)

Returns a value that indicates whether a specified Single value is greater than or equal to another specified Single value.

Inequality(Single, Single)

Returns a value that indicates whether two specified Single values are not equal.

LessThan(Single, Single)

Returns a value that indicates whether a specified Single value is less than another specified Single value.

LessThanOrEqual(Single, Single)

Returns a value that indicates whether a specified Single value is less than or equal to another specified Single value.

Explicit Interface Implementations

IAdditionOperators<Single,Single,Single>.Addition(Single, Single)

Adds two values together to compute their sum.

IAdditiveIdentity<Single,Single>.AdditiveIdentity

Gets the additive identity of the current type.

IBinaryNumber<Single>.AllBitsSet

Gets an instance of the binary type in which all bits are set.

IBitwiseOperators<Single,Single,Single>.BitwiseAnd(Single, Single)

Computes the bitwise-and of two values.

IBitwiseOperators<Single,Single,Single>.BitwiseOr(Single, Single)

Computes the bitwise-or of two values.

IBitwiseOperators<Single,Single,Single>.ExclusiveOr(Single, Single)

Computes the exclusive-or of two values.

IBitwiseOperators<Single,Single,Single>.OnesComplement(Single)

Computes the ones-complement representation of a given value.

IComparable.CompareTo(Object)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

IConvertible.GetTypeCode()

Returns the TypeCode for this instance.

IConvertible.ToBoolean(IFormatProvider)

For a description of this member, see ToBoolean(IFormatProvider).

IConvertible.ToByte(IFormatProvider)

For a description of this member, see ToByte(IFormatProvider).

IConvertible.ToChar(IFormatProvider)

This conversion is not supported. Attempting to use this method throws an InvalidCastException.

IConvertible.ToDateTime(IFormatProvider)

This conversion is not supported. Attempting to use this method throws an InvalidCastException.

IConvertible.ToDecimal(IFormatProvider)

For a description of this member, see ToDecimal(IFormatProvider).

IConvertible.ToDouble(IFormatProvider)

For a description of this member, see ToDouble(IFormatProvider).

IConvertible.ToInt16(IFormatProvider)

For a description of this member, see ToInt16(IFormatProvider).

IConvertible.ToInt32(IFormatProvider)

For a description of this member, see ToInt32(IFormatProvider).

IConvertible.ToInt64(IFormatProvider)

For a description of this member, see ToInt64(IFormatProvider).

IConvertible.ToSByte(IFormatProvider)

For a description of this member, see ToSByte(IFormatProvider).

IConvertible.ToSingle(IFormatProvider)

For a description of this member, see ToSingle(IFormatProvider).

IConvertible.ToType(Type, IFormatProvider)

For a description of this member, see ToType(Type, IFormatProvider).

IConvertible.ToUInt16(IFormatProvider)

For a description of this member, see ToUInt16(IFormatProvider).

IConvertible.ToUInt32(IFormatProvider)

For a description of this member, see ToUInt32(IFormatProvider).

IConvertible.ToUInt64(IFormatProvider)

For a description of this member, see ToUInt64(IFormatProvider).

IDecrementOperators<Single>.Decrement(Single)

Decrements a value.

IDivisionOperators<Single,Single,Single>.Division(Single, Single)

Divides one value by another to compute their quotient.

IFloatingPoint<Single>.GetExponentByteCount()

Gets the number of bytes that will be written as part of TryWriteExponentLittleEndian(Span<Byte>, Int32).

IFloatingPoint<Single>.GetExponentShortestBitLength()

Gets the length, in bits, of the shortest two's complement representation of the current exponent.

IFloatingPoint<Single>.GetSignificandBitLength()

Gets the length, in bits, of the current significand.

IFloatingPoint<Single>.GetSignificandByteCount()

Gets the number of bytes that will be written as part of TryWriteSignificandLittleEndian(Span<Byte>, Int32).

IFloatingPoint<Single>.TryWriteExponentBigEndian(Span<Byte>, Int32)

Tries to write the current exponent, in big-endian format, to a given span.

IFloatingPoint<Single>.TryWriteExponentLittleEndian(Span<Byte>, Int32)

Tries to write the current exponent, in little-endian format, to a given span.

IFloatingPoint<Single>.TryWriteSignificandBigEndian(Span<Byte>, Int32)

Tries to write the current significand, in big-endian format, to a given span.

IFloatingPoint<Single>.TryWriteSignificandLittleEndian(Span<Byte>, Int32)

Tries to write the current significand, in little-endian format, to a given span.

IFloatingPointConstants<Single>.E

Gets the mathematical constant e.

IFloatingPointConstants<Single>.Pi

Gets the mathematical constant pi.

IFloatingPointConstants<Single>.Tau

Gets the mathematical constant tau.

IFloatingPointIeee754<Single>.Epsilon

Gets the smallest value such that can be added to 0 that does not result in 0.

IFloatingPointIeee754<Single>.NaN

Gets a value that represents NaN.

IFloatingPointIeee754<Single>.NegativeInfinity

Gets a value that represents negative infinity.

IFloatingPointIeee754<Single>.NegativeZero

Gets a value that represents negative zero.

IFloatingPointIeee754<Single>.PositiveInfinity

Gets a value that represents positive infinity.

IIncrementOperators<Single>.Increment(Single)

Increments a value.

IMinMaxValue<Single>.MaxValue

Gets the maximum value of the current type.

IMinMaxValue<Single>.MinValue

Gets the minimum value of the current type.

IModulusOperators<Single,Single,Single>.Modulus(Single, Single)

Divides two values together to compute their modulus or remainder.

IMultiplicativeIdentity<Single,Single>.MultiplicativeIdentity

Gets the multiplicative identity of the current type.

IMultiplyOperators<Single,Single,Single>.Multiply(Single, Single)

Multiplies two values together to compute their product.

INumberBase<Single>.IsCanonical(Single)

Determines if a value is in its canonical representation.

INumberBase<Single>.IsComplexNumber(Single)

Determines if a value represents a complex number.

INumberBase<Single>.IsImaginaryNumber(Single)

Determines if a value represents a pure imaginary number.

INumberBase<Single>.IsZero(Single)

Determines if a value is zero.

INumberBase<Single>.One

Gets the value 1 for the type.

INumberBase<Single>.Radix

Gets the radix, or base, for the type.

INumberBase<Single>.TryConvertFromChecked<TOther>(TOther, Single)
INumberBase<Single>.TryConvertFromSaturating<TOther>(TOther, Single)
INumberBase<Single>.TryConvertFromTruncating<TOther>(TOther, Single)
INumberBase<Single>.TryConvertToChecked<TOther>(Single, TOther)

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<Single>.TryConvertToSaturating<TOther>(Single, TOther)

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<Single>.TryConvertToTruncating<TOther>(Single, TOther)

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<Single>.Zero

Gets the value 0 for the type.

ISignedNumber<Single>.NegativeOne

Gets the value -1 for the type.

ISubtractionOperators<Single,Single,Single>.Subtraction(Single, Single)

Subtracts two values to compute their difference.

IUnaryNegationOperators<Single,Single>.UnaryNegation(Single)

Computes the unary negation of a value.

IUnaryPlusOperators<Single,Single>.UnaryPlus(Single)

Computes the unary plus of a value.

Applies to

Thread Safety

All members of this type are thread safe. Members that appear to modify instance state actually return a new instance initialized with the new value. As with any other type, reading and writing to a shared variable that contains an instance of this type must be protected by a lock to guarantee thread safety.

See also