Go Floating Point: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:
=Overview=
=Overview=
Uninitialized variable value: <code>+0.000000e+000</code>
Uninitialized variable value: <code>+0.000000e+000</code>
Floating-point numbers are designated by the following [[Go Concepts - Lexical Structure#Pre-Declared_Identifiers|pre-declared type identifiers]]:
* Single precision <tt>float32</tt> (4 bytes IEEE-754 binary floating point) and double precision <tt>float64</tt>.
* Complex: <tt>complex64</tt> and <tt>complex128</tt>.
=Floating-Point Literals=

Revision as of 00:30, 19 August 2023

Internal

Overview

Uninitialized variable value: +0.000000e+000

Floating-point numbers are designated by the following pre-declared type identifiers:

  • Single precision float32 (4 bytes IEEE-754 binary floating point) and double precision float64.
  • Complex: complex64 and complex128.

Floating-Point Literals