📜  浮点数到字节 java 代码示例

📅  最后修改于: 2022-03-11 14:52:36.053000             🧑  作者: Mango

代码示例1
int intBits =  Float.floatToIntBits(value);
byte[] bs = new byte[] {
      (byte) (intBits >> 24),
      (byte) (intBits >> 16),
      (byte) (intBits >> 8),
      (byte) (intBits)
};