12#ifndef ARCCORE_BASE_FLOATINFO_H
13#define ARCCORE_BASE_FLOATINFO_H
57 static constexpr unsigned int precision() {
return 1; }
58 static constexpr unsigned int maxDigit() {
return FLT_DIG; }
59 static constexpr float epsilon() {
return FLT_EPSILON; }
60 static constexpr float nearlyEpsilon() {
return FLT_EPSILON * 10.0f; }
61 static constexpr float maxValue() {
return FLT_MAX; }
62 static constexpr float zero() {
return 0.0f; }
80 static constexpr unsigned int precision() {
return 2; }
81 static constexpr unsigned int maxDigit() {
return DBL_DIG; }
82 static constexpr double epsilon() {
return DBL_EPSILON; }
83 static constexpr double nearlyEpsilon() {
return DBL_EPSILON * 10.0; }
84 static constexpr double maxValue() {
return DBL_MAX; }
85 static constexpr double zero() {
return 0.0; }
104 static constexpr unsigned int precision() {
return 3; }
105 static constexpr unsigned int maxDigit() {
return LDBL_DIG; }
106 static constexpr long double epsilon() {
return LDBL_EPSILON; }
107 static constexpr long double nearlyEpsilon() {
return LDBL_EPSILON * 10.0; }
108 static constexpr long double maxValue() {
return LDBL_MAX; }
109 static constexpr long double zero() {
return 0.0l; }
112#ifdef ARCCORE_REAL_USE_APFLOAT
130 static constexpr bool isFloatType() {
return true; }
134 static constexpr unsigned int precision() {
return 3; }
135 static constexpr unsigned int maxDigit() {
return 35; }
136 static constexpr apfloat epsilon() {
return 1e-30; }
137 static constexpr apfloat nearlyEpsilon() {
return 1e-28; }
138 static constexpr apfloat maxValue() {
return apfloat(
"1e1000"); }
139 static constexpr apfloat zero() {
return apfloat(
"0.0"); }
Definitions and globals of Arccore.
static constexpr bool isFloatType()
Indicates that the instantiation is for a floating-point type.
static constexpr bool isFloatType()
Indicates that the instantiation is for a floating-point type.
static constexpr bool isFloatType()
Indicates that the instantiation is for a floating-point type.
Information about the floating-point type.
static constexpr bool isFloatType()
Indicates that the instantiation is for a floating-point type.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --