updated to print floating point results