take floats into sng_*graph library so that resolution is not lost before scaling