// ToFloat64 attempts to cast the Boolean to a Float64.
// The result is not checked for an overflow.
// Use the ToFloat64Checked version of this method if you need to check for
// an overflow.
ToFloat64 attempts to cast the Boolean to a Float64.
The result is not checked for an overflow.
Use the ToFloat64Checked version of this method if you need to check for
an overflow.
// ToFloat64 attempts to cast the Boolean to a Float64 . // The result is not checked for an overflow . // Use the ToFloat64Checked version of this method if you need to check for // an overflow .
func (t Boolean) ToFloat64() Float64 {
	if t {
		return Float64(1)
	}
	return Float64(0)
}
func ( t Boolean ) ToFloat64 ( ) Float64 { if t { return Float64 ( 1 ) } return Float64 ( 0 ) }
ToFloat64 attempts to cast the Boolean to a Float64.
ToFloat64 attempts to cast the Boolean to a Float64 .