看看这篇文章https://blog.csdn.net/wxfighting/article/details/120388236
int转byte和double转float这都是大的容器转小的容器数据溢出就变成负数了