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.

ch = 'B';<br />

printf("B remains upper case %c\n",<br />

toupper(ch));<br />

ch = '@';<br />

printf("@ has noupper case, ");<br />

printf("so %c is returned\n", toupper(ch));<br />

}<br />

Output:<br />

b changes to upper case B<br />

Bao gồm:<br />

Giá trị: -37 theo mặc định, nếu chuyển đổi -307 -fno-ngắn doubleis sử dụng<br />

Ghi chú: Theo mặc định, một loại tăng gấp đôi là samesize như một kiểu float<br />

(32-bit<br />

đại diện). Các -fno-ngắn doubleswitch cho phép IEEE<br />

Đại diện 64-bit được sử dụng cho một điểm chính xác đôi nổi<br />

giá trị.<br />

dsPIC<br />

®<br />

Thư viện Công cụ Ngôn ngữ<br />

B remains upper case B<br />

@ has no upper case, so @ is returned<br />

DS51456B trang 208<br />

DBL_MIN_EXP<br />

2004 Microchip Technology Inc<br />

Standard C Libraries with Math Functions<br />

2004 Microchip Technology Inc. DS51456B-page 205<br />

4.5 ERRORS<br />

The header file errno.hconsists of macros that provide error codes that are<br />

reported<br />

by certain library functions (see individual functions.) The variable errnomay<br />

return<br />

any value greater than zero. To test if a library function encounters an error, the<br />

program should store the value zero in errnoimmediately before calling the<br />

library function. The value should be checked before another function call could<br />

change the value.<br />

At program startup, errnois zero. Library functions will never set errnoto zero.<br />

EDOM<br />

Description: Represents a domain error.<br />

Include: <br />

Remarks: EDOMrepresents a domain error, which occurs when an input<br />

argument<br />

is outside the domain in whichthe function is defined.<br />

ERANGE<br />

Description: Represents an overflow or underflow error.<br />

Include: <br />

Remarks: ERANGErepresents an overflow or underflow error, which occurs<br />

when<br />

a result is too large or too small to be stored.<br />

errno<br />

Description: Contains the value of an error whenan error occurs in a function.<br />

Include: <br />

Remarks: The variable errnois set to a non-zero integer value by a library<br />

function when an error occurs. At program startup, errnois set to<br />

zero. Errnoshould be reset to zero prior to calling a function that sets<br />

it.<br />

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

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

Bao gồm:<br />

Giá trị: -125 theo mặc định, nếu chuyển đổi -1021 -fno-ngắn doubleis sử dụng<br />

Ghi chú: Theo mặc định, một loại tăng gấp đôi là samesize như một kiểu float<br />

(32-bit<br />

đại diện). Các -fno-ngắn doubleswitch cho phép IEEE<br />

Đại diện 64-bit được sử dụng cho một điểm chính xác đôi nổi<br />

giá trị.<br />

FLT_DIG<br />

Mô tả: Số chữ số thập phân chính xác tại một điểm duy nhất chính xác nổi<br />

giá trị<br />

Bao gồm:<br />

Giá trị: 6<br />

FLT_EPSILON<br />

Mô tả: Sự khác biệt giữa 1.0 và duy nhất biểu diễn lớn hơn tiếp theo<br />

chính xác giá trị dấu chấm động<br />

Bao gồm:<br />

Giá trị: 1.192093e-07<br />

FLT_MANT_DIG<br />

Mô tả: Số cơ sở-FLT_RADIXdigits trong một đơn chính xác dấu chấm động<br />

significand<br />

Bao gồm:<br />

Giá trị: 24<br />

FLT_MAX<br />

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

Bao gồm:<br />

Giá trị: 3.402823e + 38

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

Saved successfully!

Ooh no, something went wrong!