add Value::from(float)

This commit is contained in:
Sean Middleditch 2010-01-13 18:32:44 -08:00
parent 17805e5829
commit 01759517aa

View File

@ -76,6 +76,7 @@ public:
static Value from(unsigned short value) { return Value::_take(json_integer(value)); }
static Value from(signed long value) { return Value::_take(json_integer(value)); }
static Value from(unsigned long value) { return Value::_take(json_integer(value)); }
static Value from(float value) { return Value::_take(json_real(value)); }
static Value from(double value) { return Value::_take(json_real(value)); }
// create a new empty object