Kstars

nan.h
1/*
2 SPDX-FileCopyrightText: 2013 Akarsh Simha <akarsh.simha@kdemail.net>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <limits>
10
11// The way of doing this in C++ 11. Leaving it here for future purposes.
12#if 0
13namespace NaN
14{
15constexpr double d = std::numeric_limits::quiet_NaN();
16constexpr float f = std::numeric_limits<float>::quiet_NaN();
17constexpr long double ld = std::numeric_limits<long double>::quiet_NaN();
18}
19#endif
20
21namespace NaN
22{
23const double d = std::numeric_limits<double>::quiet_NaN();
24const float f = std::numeric_limits<float>::quiet_NaN();
25const long double ld = std::numeric_limits<long double>::quiet_NaN();
26}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.