//go:build go1.6
// +build go1.6

package humanize

import (
	
	
	
)

// BigCommaf produces a string form of the given big.Float in base 10
// with commas after every three orders of magnitude.
func ( *big.Float) string {
	 := &bytes.Buffer{}
	if .Sign() < 0 {
		.Write([]byte{'-'})
		.Abs()
	}

	 := []byte{','}

	 := strings.Split(.Text('f', -1), ".")
	 := 0
	if len([0])%3 != 0 {
		 += len([0]) % 3
		.WriteString([0][:])
		.Write()
	}
	for ;  < len([0]);  += 3 {
		.WriteString([0][ : +3])
		.Write()
	}
	.Truncate(.Len() - 1)

	if len() > 1 {
		.Write([]byte{'.'})
		.WriteString([1])
	}
	return .String()
}