Add support for float values in update_value() helper

Signed-off-by: Vincent Untz <vuntz@suse.com>