Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::numeri...denorm_loss(3)  C++ Standard Libary std::numeri...denorm_loss(3)

NAME
       std::numeric_limits::has_denorm_loss   -	  std::numeric_limits::has_de-
       norm_loss

Synopsis
	  static const bool has_denorm_loss;	  (until C++11)
	  static constexpr bool	has_denorm_loss;  (since C++11)

	  The value of std::numeric_limits<T>::has_denorm_loss is true for all
       floating-point
	  types	T that detect loss of precision	when creating a	subnormal num-
       ber as
	  denormalization loss rather than as inexact result (see below).

Standard specializations
	  T			     value of  std::numeric_limits<T>::has_de-
       norm_loss
	  /* non-specialized */	     false
	  bool			     false
	  char			     false
	  signed char		     false
	  unsigned char		     false
	  wchar_t		     false
	  char8_t (C++20)	     false
	  char16_t (C++11)	     false
	  char32_t (C++11)	     false
	  short			     false
	  unsigned short	     false
	  int			     false
	  unsigned int		     false
	  long			     false
	  unsigned long		     false
	  long long (C++11)	     false
	  unsigned long	long (C++11) false
	  float			     implementation-defined
	  double		     implementation-defined
	  long double		     implementation-defined

Notes
	  Standard-compliant  IEEE  754	floating-point implementations of sub-
       normal numbers are
	  required to detect the loss of accuracy associated with the creation
       of such number,
	  if it	occurs,	and may	do so in one of	the two	distinct ways:

	   1. Denormalization loss: the	delivered  result  differs  from  what
       would have been
	      computed were exponent range unbounded.
	   2.  Inexact	result:	 the  delivered	result differs from what would
       have been computed
	      were both	exponent range and precision unbounded.

	  No implementation of denormalization loss mechanism exists (accuracy
       loss is
	  detected after rounding, as inexact result), and this	option was re-
       moved in	the 2008
	  revision of IEEE Std 754.

	  libstdc++, libc++, libCstd, and stlport4  define  this  constant  as
       false for all
	  floating-point types.	Microsoft Visual Studio	defines	it as true for
       all
	  floating-point types.

	  As  with  any	 floating-point	 computations, accuracy	loss may raise
       FE_INEXACT

Example
	   This	section	is incomplete
	   Reason: no example

See also
	  tinyness_before identifies floating-point types that detect tinyness
       before rounding
	  [static]	  (public static member	constant)
	  has_denorm	  identifies the denormalization  style	 used  by  the
       floating-point type
	  [static]	  (public static member	constant)

http://cppreference.com		  2022.07.31	  std::numeri...denorm_loss(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::numeric_limits::has_denorm_loss&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help