C: Do it yourself. See how variable 2.5 in memory is stored in float and double type.

Source: Internet
Author: User

650) this.width=650; "title=" osf]4) uext]ob$a$i]y7q9x.png "src=" http://s3.51cto.com/wyfs02/M02/75/82/ Wkiom1y65dgwxdd5aacdjztdkmk204.jpg "alt=" Wkiom1y65dgwxdd5aacdjztdkmk204.jpg "/>

Written as a program. fn and F10 into the Debug interface: Select the following to enter Memory 1 view memory

650) this.width=650; "style=" width:763px;height:338px; "title="}v]8%m4r6$o3 ' a[qz5257m9.png "src=" http:// S3.51cto.com/wyfs02/m01/75/7f/wkiol1y65xeifroyaax1rrtijg4412.jpg "width=" 1069 "height=" 587 "alt=" Wkiol1y65xeifroyaax1rrtijg4412.jpg "/>

Enter &a,&b to view the memory separately:

650) this.width=650; "style=" width:419px;float:none;height:412px; "title=" Y$80bxcc0965m[@%8cawtk7.png "src=" http:/ /s3.51cto.com/wyfs02/m02/75/7f/wkiol1y66xgagygsaagj7oobds8563.jpg "width=" 277 "height=" 408 "alt=" Wkiol1y66xgagygsaagj7oobds8563.jpg "/>

Example float

float A = 2.5

10.1 = 1.01 * ^1;

The sign bit is 0;

refers to a digit 8 bit, 127 + 1 = 128 = 1000 0000;

Digits 23 bits, 0100 0000 0000 0000 000;

32-bit binary digits 0100 0000 0010 0000 0000 0000 0000

Address is 40200000

C: Do it yourself. See how variable 2.5 in memory is stored in float and double type.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.