SW006013 Microchip Technology, SW006013 Datasheet - Page 175

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
ldexpf (Continued)
}
Output:
For a number = -0.625000 and an exponent = 2
For a number = 2.500000 and an exponent = 3
Error: range error
For a number = 15.000000 and an exponent = 10000
errno = 0;
x = 15.0F;
n = 10000;
y = ldexpf (x, n);
if (errno)
printf("For a number = %f and an exponent = %d\n",
printf("
ldexpf(-0.625000, 2) = -2.500000
ldexpf(2.500000, 3) = 20.000000
ldexpf(15.000000, 10000) = inf
perror("Error");
x, n);
x, n, y);
ldexpf(%f, %d) = %f\n\n",
DS51456E-page 171

Related parts for SW006013