# IEEE双精度格式的数字的二进制表示Binary representation of Number in IEEE double-precision format

``````    var b:ByteArray = new ByteArray();
var n :Number = 9878.658456;
trace(uint(n).toString(2));
b.writeDouble(n);
``````

``````    trace((b.readByte() ).toString(2));
``````

## 1 个回复1

### #1楼 票数：0 已采纳

``````    var b:ByteArray = new ByteArray();
var n :Number = 9878.658456;
b.writeDouble(n);
b.position=0;
`````` 1回复

2回复

1回复

1回复

1回复

5回复

1回复

4回复
{"ft_lang_label":"__label__zh","ft_lang_prob":0.52522796,"math_prob":0.89697915,"size":609,"snap":"2021-43-2021-49","text_gpt3_token_len":276,"char_repetition_ratio":0.2644628,"word_repetition_ratio":0.3529412,"special_character_ratio":0.3234811,"punctuation_ratio":0.3119266,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9732146,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-27T21:45:53Z\",\"WARC-Record-ID\":\"<urn:uuid:5951f468-87c8-41e2-9fa5-98c09ebf0d74>\",\"Content-Length\":\"28512\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:df157b68-99a3-41e0-bc0a-000856004d87>\",\"WARC-Concurrent-To\":\"<urn:uuid:a947c9d9-81bb-45bd-9cc0-a4304ef5e517>\",\"WARC-IP-Address\":\"118.31.174.222\",\"WARC-Target-URI\":\"https://stackoom.com/question/qHLw\",\"WARC-Payload-Digest\":\"sha1:5DPZLCVGQT6FRT7HYZURVKYZSCVNQWUK\",\"WARC-Block-Digest\":\"sha1:AGSO4CMLOV442Q5D2NQDKMJLG2J3WCRZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323588244.55_warc_CC-MAIN-20211027212831-20211028002831-00036.warc.gz\"}"}