package pflag

import 

// -- float64 Value
type float64Value float64

func newFloat64Value( float64,  *float64) *float64Value {
	* = 
	return (*float64Value)()
}

func ( *float64Value) ( string) error {
	,  := strconv.ParseFloat(, 64)
	* = float64Value()
	return 
}

func ( *float64Value) () string {
	return "float64"
}

func ( *float64Value) () string { return strconv.FormatFloat(float64(*), 'g', -1, 64) }

func float64Conv( string) (interface{}, error) {
	return strconv.ParseFloat(, 64)
}

// GetFloat64 return the float64 value of a flag with the given name
func ( *FlagSet) ( string) (float64, error) {
	,  := .getFlagType(, "float64", float64Conv)
	if  != nil {
		return 0, 
	}
	return .(float64), nil
}

// Float64Var defines a float64 flag with specified name, default value, and usage string.
// The argument p points to a float64 variable in which to store the value of the flag.
func ( *FlagSet) ( *float64,  string,  float64,  string) {
	.VarP(newFloat64Value(, ), , "", )
}

// Float64VarP is like Float64Var, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) ( *float64, ,  string,  float64,  string) {
	.VarP(newFloat64Value(, ), , , )
}

// Float64Var defines a float64 flag with specified name, default value, and usage string.
// The argument p points to a float64 variable in which to store the value of the flag.
func ( *float64,  string,  float64,  string) {
	CommandLine.VarP(newFloat64Value(, ), , "", )
}

// Float64VarP is like Float64Var, but accepts a shorthand letter that can be used after a single dash.
func ( *float64, ,  string,  float64,  string) {
	CommandLine.VarP(newFloat64Value(, ), , , )
}

// Float64 defines a float64 flag with specified name, default value, and usage string.
// The return value is the address of a float64 variable that stores the value of the flag.
func ( *FlagSet) ( string,  float64,  string) *float64 {
	 := new(float64)
	.Float64VarP(, , "", , )
	return 
}

// Float64P is like Float64, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) (,  string,  float64,  string) *float64 {
	 := new(float64)
	.Float64VarP(, , , , )
	return 
}

// Float64 defines a float64 flag with specified name, default value, and usage string.
// The return value is the address of a float64 variable that stores the value of the flag.
func ( string,  float64,  string) *float64 {
	return CommandLine.Float64P(, "", , )
}

// Float64P is like Float64, but accepts a shorthand letter that can be used after a single dash.
func (,  string,  float64,  string) *float64 {
	return CommandLine.Float64P(, , , )
}