divide number type support into integers and doubles

Signed-off-by: Roman Yeryomin <roman@advem.lv>