func NewFromStringWithName(name string, value string) (Decimal, error) {
	d, err := decimal.NewFromString(value)
	if err != nil {
		return Decimal{}, err
	}

	return Decimal{name: name, decimal: d, vars: name, formula: d.String()}, nil
}
// NewFromStringWithName returns a new Decimal from a string representation with
// a given name. Trailing zeroes are not trimmed.
//
// Example:
//
//     d, err := NewFromStringWithName("var1", "-123.45")
//     d2, err := NewFromStringWithName("var1", ".0001")
//     d3, err := NewFromStringWithName("var1", "1.47000")
//
NewFromStringWithName returns a new Decimal from a string representation with
a given name. Trailing zeroes are not trimmed.




// NewFromStringWithName returns a new Decimal from a string representation with // a given name . Trailing zeroes are not trimmed . // // Example : // // d err : = NewFromStringWithName ( " var1 " " - 123 . 45 " ) // d2 err : = NewFromStringWithName ( " var1 " " . 0001 " ) // d3 err : = NewFromStringWithName ( " var1 " " 1 . 47000 " ) //
func NewFromStringWithName(name string, value string) (Decimal, error) {
	d, err := decimal.NewFromString(value)
	if err != nil {
		return Decimal{}, err
	}
	return Decimal{name: name, decimal: d, vars: name, formula: d.String()}, nil
}
func NewFromStringWithName ( name string , value string ) ( Decimal , error ) { d , err := decimal . NewFromString ( value ) if err != nil { return Decimal { } , err } return Decimal { name : name , decimal : d , vars : name , formula : d . String ( ) } , nil }
NewFromStringWithName returns a new Decimal from a string representation with
a given name.
NewFromStringWithName returns a new Decimal from a string representation with a given name .