Modified declaring r to be of type long, "r = v" will not have the loss of accuracy of data problem in this way.
拖放文件到此处或点击上传