Description of short int, long, float, and double usage Problems

Source: Internet
Author: User

Short int short integer two byte value range-32768 ~ 32767
The value range of four long integer bytes is-2147483648 ~ 2147483647 float single precision 4 byte value range-3.4*10 (-38 )~ 3.4*10 (38)
Double double 8-byte value range-1.7*10 (-308 )~ 1.7*10 (308)

This problem occurs when access data is exported to DBF. The field width in DBF is not the number of bytes occupied by access fields, but the number of characters. In DBF, integers and floating-point numbers are stored as characters. For example,-3.134 is stored as "-3.135", which contains 6 characters.
So
For short integers in access, the field width stored in DBF is 6;
For long integers in access, the field width stored in DBF is 11;
For the single precision in access, the field width in DBF is 18, and the decimal point is 7;
For the Double Precision in access, the field width in DBF is stored as 24, and the decimal point is 15.
That is to say, it is difficult to ensure the accuracy of Single-precision and double-precision data in access to be transferred to DBF.

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.