allow to set precision for double numbers

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