glib/docs/reference/glib/numerical.md
Philip Withnall 877b0affb6 docs: Move the numerical SECTION
Move it to a separate Markdown file.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3037
2023-11-28 13:52:05 +00:00

1.1 KiB
Raw Blame History

Title: Numerical Definitions SPDX-License-Identifier: LGPL-2.1-or-later SPDX-FileCopyrightText: 2001 Havoc Pennington SPDX-FileCopyrightText: 2010 Red Hat, Inc.

Numerical Definitions

GLib offers mathematical constants such as [const@GLib.PI] for the value of pi; many platforms have these in the C library, but some dont. The GLib versions always exist.

The [type@GLib.FloatIEEE754] and [type@GLib.DoubleIEEE754] unions are used to access the sign, mantissa and exponent of IEEE floats and doubles. These unions are defined as appropriate for a given platform. IEEE floats and doubles are supported (used for storage) by at least Intel, PPC and Sparc. See IEEE 754-2008 for more information about IEEE number formats.

Floating Point

Numerical Constants