Go Floating Point: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
Uninitialized variable value: <code>+0.000000e+000</code> | Uninitialized variable value: <code>+0.000000e+000</code> | ||
Floating-point numbers are designated by the following [[ | Floating-point numbers are designated by the following [[Go_Language#Pre-Declared_Types|pre-declared type identifiers]]: | ||
* Single precision <tt>float32</tt> (4 bytes IEEE-754 binary floating point) and double precision <tt>float64</tt>. | * 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>. | * Complex: <tt>complex64</tt> and <tt>complex128</tt>. | ||
=Floating-Point Literals= | =Floating-Point Literals= |
Revision as of 00:32, 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.