fast

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc)

See LICENSE_V8 for the original copyright message and disclaimer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dtoa

func Dtoa(v float64, mode Mode, requested_digits int, buffer []byte) (digits []byte, decimal_point int, result bool)

v must be > 0 and must not be Inf or NaN

Types

type Mode

type Mode int
const (
	ModeShortest Mode = iota
	ModePrecision
)

Jump to

Keyboard shortcuts

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