//PutDecimal function will add the key,value to the properties. The value is accepted as decimal however is is stored as
//a string. If the property was already present then the previous values is returned
PutDecimal function will add the key,value to the properties. The value is accepted as decimal however is is stored as
a string. If the property was already present then the previous values is returned
// PutDecimal function will add the key value to the properties . The value is accepted as decimal however is is stored as // a string . If the property was already present then the previous values is returned
func (p *Properties) PutDecimal(k string, v float64) (float64, error) {
	p.Lock()
	defer p.Unlock()
	var ret float64
	var err error = nil
	if oldValue, ok := p.props[k]; ok {
		ret, err = strconv.ParseFloat(p.resolve(oldValue), 64)
	}
	p.props[k] = createValue(k, fmt.Sprintf("%f", v))
	p.resolveAll()
	return ret, err
}
func ( p * Properties ) PutDecimal ( k string , v float64 ) ( float64 , error ) { p . Lock ( ) defer p . Unlock ( ) var ret float64 var err error = nil if oldValue , ok := p . props [ k ] ; ok { ret , err = strconv . ParseFloat ( p . resolve ( oldValue ) , 64 ) } p . props [ k ] = createValue ( k , fmt . Sprintf ( " " , v ) ) p . resolveAll ( ) return ret , err }
PutDecimal function will add the key,value to the properties.
PutDecimal function will add the key value to the properties .