| Home | Libraries | People | FAQ | More

## Class template numeric_limits<::boost::units::quantity< Unit, T >>

std::numeric_limits<::boost::units::quantity< Unit, T >>

## Synopsis

    // In header: <boost/units/limits.hpp>

    template<typename Unit, typename T>
    class numeric_limits<::boost::units::quantity< Unit, T >> {
    public:
      // types
      typedef ::boost::units::quantity< Unit, T > quantity_type;

      // public static functions
      static BOOST_CONSTEXPR quantity_type() min();
      static BOOST_CONSTEXPR quantity_type() max();
      static BOOST_CONSTEXPR quantity_type() lowest();
      static BOOST_CONSTEXPR quantity_type epsilon();
      static BOOST_CONSTEXPR quantity_type round_error();
      static BOOST_CONSTEXPR quantity_type infinity();
      static BOOST_CONSTEXPR quantity_type quiet_NaN();
      static BOOST_CONSTEXPR quantity_type signaling_NaN();
      static BOOST_CONSTEXPR quantity_type denorm_min();

      // public data members
      BOOST_STATIC_CONSTEXPR bool is_specialized;
      BOOST_STATIC_CONSTEXPR int digits;
      BOOST_STATIC_CONSTEXPR int digits10;
      BOOST_STATIC_CONSTEXPR int max_digits10;
      BOOST_STATIC_CONSTEXPR bool is_signed;
      BOOST_STATIC_CONSTEXPR bool is_integer;
      BOOST_STATIC_CONSTEXPR bool is_exact;
      BOOST_STATIC_CONSTEXPR int radix;
      BOOST_STATIC_CONSTEXPR int min_exponent;
      BOOST_STATIC_CONSTEXPR int min_exponent10;
      BOOST_STATIC_CONSTEXPR int max_exponent;
      BOOST_STATIC_CONSTEXPR int max_exponent10;
      BOOST_STATIC_CONSTEXPR bool has_infinity;
      BOOST_STATIC_CONSTEXPR bool has_quiet_NaN;
      BOOST_STATIC_CONSTEXPR bool has_signaling_NaN;
      BOOST_STATIC_CONSTEXPR bool has_denorm_loss;
      BOOST_STATIC_CONSTEXPR bool is_iec559;
      BOOST_STATIC_CONSTEXPR bool is_bounded;
      BOOST_STATIC_CONSTEXPR bool is_modulo;
      BOOST_STATIC_CONSTEXPR bool traps;
      BOOST_STATIC_CONSTEXPR bool tinyness_before;
      BOOST_STATIC_CONSTEXPR float_denorm_style has_denorm;
      BOOST_STATIC_CONSTEXPR float_round_style round_style;
    };

## Description

### `numeric_limits` public static functions

1.     static BOOST_CONSTEXPR quantity_type() min();

2.     static BOOST_CONSTEXPR quantity_type() max();

3.     static BOOST_CONSTEXPR quantity_type() lowest();

4.     static BOOST_CONSTEXPR quantity_type epsilon();

5.     static BOOST_CONSTEXPR quantity_type round_error();

6.     static BOOST_CONSTEXPR quantity_type infinity();

7.     static BOOST_CONSTEXPR quantity_type quiet_NaN();

8.     static BOOST_CONSTEXPR quantity_type signaling_NaN();

9.     static BOOST_CONSTEXPR quantity_type denorm_min();