...
Package fast
import "github.com/dop251/goja/ftoa/internal/fast"
- Overview
- Index
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
type Mode int
const (
ModeShortest Mode = iota
ModePrecision
)