30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

dsPIC<br />

®<br />

Language Tools Libraries<br />

DS51456B-page 206<br />

2004 Microchip Technology Inc.<br />

4.6 FLOATING-POINT CHARACTERISTICS<br />

The header file float.hconsists of macros that specify various properties of<br />

floating<br />

point types. These properties include number of significant figures, size limits,<br />

and what<br />

rounding mode is used.<br />

DBL_DIG<br />

Description: Number of decimal digits of precision in a double precision<br />

floating<br />

point value<br />

Include: <br />

Value: 6 by default, 15 if the switch -fno-short-doubleis used<br />

Remarks: By default, a double type is the samesize as a float type (32-bit<br />

representation). The -fno-short-doubleswitch allows the IEEE<br />

64-bit representation to be used for a double precision floating point<br />

value.<br />

DBL_EPSILON<br />

Description: The difference between 1.0 and the next larger representable<br />

double<br />

precision floating point value<br />

Include: <br />

Value: 1.192093e-07 by default, 2.220446e-16 if the switch<br />

-fno-short-doubleis used<br />

Remarks: By default, a double type is the samesize as a float type (32-bit<br />

representation). The -fno-short-doubleswitch allows the IEEE<br />

64-bit representation to be used for a double precision floating point<br />

value.<br />

DBL_MANT_DIG<br />

Description: Number of base-FLT_RADIXdigits in a double precision floatingpoint<br />

significand<br />

Include: <br />

Value: 24 by default, 53 if the switch -fno-short-doubleis used<br />

Remarks: By default, a double type is the samesize as a float type (32-bit<br />

representation). The-fno-short-doubleswitch allows the IEEE<br />

64-bit representation to be used for a double precision floating point<br />

value.<br />

FLT_MAX_10_EXP<br />

Mô tả: giá trị số nguyên tối đa cho một số mũ điểm chính xác đơn trôi nổi trong<br />

10 cơ sở<br />

Bao gồm:<br />

Giá trị: 38<br />

Thư viện chuẩn C với hàm toán học<br />

2004 Microchip Technology Inc DS51456B trang 209<br />

FLT_MAX_EXP<br />

Mô tả: giá trị số nguyên tối đa cho một số mũ điểm chính xác đơn trôi nổi trong<br />

cơ sở FLT_RADIX<br />

Bao gồm:<br />

Giá trị: 128<br />

FLT_MIN<br />

Mô tả: đơn giá trị điểm nổi chính xác tối thiểu<br />

Bao gồm:<br />

Giá trị: 1.175494e-38<br />

FLT_MIN_10_EXP<br />

Mô tả: Giá trị số nguyên âm tối thiểu cho một điểm duy nhất chính xác nổi<br />

số mũ cơ số 10<br />

Bao gồm:<br />

Giá trị: -37<br />

FLT_MIN_EXP<br />

Mô tả: Giá trị số nguyên âm tối thiểu cho một điểm duy nhất chính xác nổi<br />

mũ trong FLT_RADIX cơ sở<br />

Bao gồm:<br />

Giá trị: -125<br />

FLT_RADIX<br />

Mô tả: Radix đại diện mũ<br />

Bao gồm:<br />

Giá trị: 2<br />

Ghi chú: Các đại diện cơ sở của số mũ là cơ sở-2 hoặc nhị phân.<br />

FLT_ROUNDS<br />

Mô tả: Đại diện cho chế độ làm tròn cho các hoạt động nổi điểm<br />

Bao gồm:<br />

Giá trị: 1<br />

Bình luận: Rounds với giá trị biểu diễn gần<br />

LDBL_DIG<br />

Mô tả: Số chữ số thập phân có độ chính xác trong một độ chính xác kép dài<br />

điểm nổi giá trị

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!