From 01759517aa8172270725cdac22384239ceabee14 Mon Sep 17 00:00:00 2001 From: Sean Middleditch Date: Wed, 13 Jan 2010 18:32:44 -0800 Subject: [PATCH] add Value::from(float) --- janssonxx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/janssonxx.h b/janssonxx.h index 0871c52..e09010d 100644 --- a/janssonxx.h +++ b/janssonxx.h @@ -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