Help us shape the future of Go! Take the 2026 Go Developer Survey

float_table

command
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

float_table writes the table of the powers of ten of shortestDecimal ( internal/floatfmt/float_table.go ): for each k from floatKMin to floatKMax, g = ⌊10⁻ᵏ·2¹²⁵⁻ᶠ⌋ + 1, where f = ⌊−k·log₂10⌋ as floorLog2Pow10 computes it, so that 2¹²⁵ ≤ g < 2¹²⁶, as its high 63 bits and its low 63 bits.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL