OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Standard_ShortReal.hxx File Reference
    #include <algorithm>
    #include <cmath>
    #include <climits>
    #include <float.h>
    #include <Standard_TypeDef.hxx>

    Functions

    constexpr float ShortRealSmall ()
     Returns the minimum positive float value.
    Use std::abs instead float Abs (const float theValue)
     Returns the absolute value of a float Value. Equivalent to std::abs.
    constexpr int ShortRealDigits ()
     Returns the number of digits of precision in a float.
    constexpr float ShortRealEpsilon ()
     Returns the minimum positive float such that 1.0f + ShortRealEpsilon() != 1.0f.
    constexpr float ShortRealFirst ()
     Returns the minimum negative value of a float.
    constexpr int ShortRealFirst10Exp ()
     Returns the minimum value of exponent(base 10) of a float.
    constexpr float ShortRealLast ()
     Returns the maximum value of a float.
    constexpr int ShortRealLast10Exp ()
     Returns the maximum value of exponent(base 10) of a float.
    constexpr int ShortRealMantissa ()
     Returns the mantissa (number of bits in the significand) of a float.
    constexpr int ShortRealRadix ()
     Returns the radix (base) of a float.
    constexpr int ShortRealSize ()
     Returns the size in bits of a float.
    Use std::max instead constexpr float Max (const float theValue1, const float theValue2)
     Returns the maximum value of two floats. Equivalent to std::max.
    Use std::min instead constexpr float Min (const float theValue1, const float theValue2)
     Returns the minimum value of two floats. Equivalent to std::min.

    Function Documentation

    ◆ Abs()

    Use std::abs instead float Abs ( const float theValue)
    inline

    Returns the absolute value of a float Value. Equivalent to std::abs.

    Deprecated
    ("This function duplicates std::abs and will be removed in future releases. "

    ◆ Max()

    Use std::max instead constexpr float Max ( const float theValue1,
    const float theValue2 )
    constexpr

    Returns the maximum value of two floats. Equivalent to std::max.

    Deprecated
    ("This function duplicates std::max and will be removed in future releases. "

    ◆ Min()

    Use std::min instead constexpr float Min ( const float theValue1,
    const float theValue2 )
    constexpr

    Returns the minimum value of two floats. Equivalent to std::min.

    Deprecated
    ("This function duplicates std::min and will be removed in future releases. "

    ◆ ShortRealDigits()

    int ShortRealDigits ( )
    nodiscardconstexpr

    Returns the number of digits of precision in a float.

    ◆ ShortRealEpsilon()

    float ShortRealEpsilon ( )
    nodiscardconstexpr

    Returns the minimum positive float such that 1.0f + ShortRealEpsilon() != 1.0f.

    ◆ ShortRealFirst()

    float ShortRealFirst ( )
    nodiscardconstexpr

    Returns the minimum negative value of a float.

    ◆ ShortRealFirst10Exp()

    int ShortRealFirst10Exp ( )
    nodiscardconstexpr

    Returns the minimum value of exponent(base 10) of a float.

    ◆ ShortRealLast()

    float ShortRealLast ( )
    nodiscardconstexpr

    Returns the maximum value of a float.

    ◆ ShortRealLast10Exp()

    int ShortRealLast10Exp ( )
    nodiscardconstexpr

    Returns the maximum value of exponent(base 10) of a float.

    ◆ ShortRealMantissa()

    int ShortRealMantissa ( )
    nodiscardconstexpr

    Returns the mantissa (number of bits in the significand) of a float.

    ◆ ShortRealRadix()

    int ShortRealRadix ( )
    nodiscardconstexpr

    Returns the radix (base) of a float.

    ◆ ShortRealSize()

    int ShortRealSize ( )
    nodiscardconstexpr

    Returns the size in bits of a float.

    ◆ ShortRealSmall()

    float ShortRealSmall ( )
    nodiscardconstexpr

    Returns the minimum positive float value.