Read/Write bytes of float in JS

前端 未结 6 1785
野趣味
野趣味 2020-11-28 09:46

Is there any way I can read bytes of a float value in JS? What I need is to write a raw FLOAT or DOUBLE value into some binary format I need to make, so is there any way to

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 10:35

    I expect you could figure it out (blech), but I assume you're asking if there's something built-in. Not as far as I've ever heard; see sections 8.5 and 15.7 of the spec.

提交回复
热议问题