2

The input is [0x41,0xa7,0x33,0x33] -> is a UInt8 array. When I tried using the algorithm for IEEE 754 by splitting into sign, exponential and mantissa, I stuck in the middle due to the power function returns NaN for the pow(2,(exp - 1023)) part.

Is there any easy built in methods available for swift?

krishnakumarcn
  • 3,959
  • 6
  • 39
  • 69
  • 1
    Is that array `big-endian` or `little-endian` representation of `Float`? Or in other way is your number `4.18288e-08` or `20.9`? – user28434'mstep May 25 '18 at 11:40

0 Answers0