intBitsToFloat method in Java VS C#?

前端 未结 3 418
猫巷女王i
猫巷女王i 2021-01-26 16:34

I\'m getting the wrong number when converting bits to float in C#.

Let\'s use this bit number= 1065324597

In Java, if I want to co

3条回答
  •  北海茫月
    2021-01-26 17:21

    i want to add on top of what jon skeet said, that also, for big float, if you don't want the "E+" output you should do:

    intbits.ToString("N0");
    

提交回复
热议问题