利用Float.intBitsToFloat与Float.floatToIntBits可以实现int与float转换,并且防止精度丢失.
Float.intBitsToFloat
Float.floatToIntBits