Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Functions
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()

constexpr int ShortRealDigits ( )
constexpr

Returns the number of digits of precision in a float.

◆ ShortRealEpsilon()

constexpr float ShortRealEpsilon ( )
constexpr

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

◆ ShortRealFirst()

constexpr float ShortRealFirst ( )
constexpr

Returns the minimum negative value of a float.

◆ ShortRealFirst10Exp()

constexpr int ShortRealFirst10Exp ( )
constexpr

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

◆ ShortRealLast()

constexpr float ShortRealLast ( )
constexpr

Returns the maximum value of a float.

◆ ShortRealLast10Exp()

constexpr int ShortRealLast10Exp ( )
constexpr

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

◆ ShortRealMantissa()

constexpr int ShortRealMantissa ( )
constexpr

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

◆ ShortRealRadix()

constexpr int ShortRealRadix ( )
constexpr

Returns the radix (base) of a float.

◆ ShortRealSize()

constexpr int ShortRealSize ( )
constexpr

Returns the size in bits of a float.

◆ ShortRealSmall()

constexpr float ShortRealSmall ( )
constexpr

Returns the minimum positive float value.