int num 应该不会加.0double phnum会加的,因为它是double型,转化的时候 即使没有数据位也会输出小数位
把phnum转化int试试