CBQE-2401: numbers fns

Change-Id: I4591d04204c650596c7fa1e3540224500fe44c2f
Reviewed-on: http://review.couchbase.org/41228
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
Tested-by: buildbot <build@couchbase.com>