Example #1
0
func (this *Context) GetFloat(key string, defaultValue float32) float32 {
	var value = this.GetValue(key, defaultValue)
	return convert.ConvertToFloat32(value)
}
Example #2
0
func (this *Context) GetFloatWithContext(contextName, key string, defaultValue float32) float32 {
	var value, _ = this.GetValueWithContext(contextName, key, defaultValue)
	return convert.ConvertToFloat32(value)
}