SW006014 Microchip Technology, SW006014 Datasheet - Page 165
![C COMPILER MPLAB FOR PIC24 MCU](/photos/9/32/93245/sw006014_sml.jpg)
SW006014
Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet
1.SW006014.pdf
(246 pages)
Specifications of SW006014
Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
- Current page: 165 of 246
- Download datasheet (3Mb)
© 2008 Microchip Technology Inc.
fabs
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
fabsf
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
Calculates the absolute value of a double precision floating-point value.
<math.h>
double fabs(double x);
x
Returns the absolute value of x. (A negative number is returned as
positive, a positive number is unchanged.)
No domain or range error will occur.
#include <math.h>
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
The absolute value of
The absolute value of -1.500000 is
Calculates the absolute value of a single precision floating-point value.
<math.h>
float fabsf(float x);
x
Returns the absolute value of x. (A negative number is returned as
positive, a positive number is unchanged.)
No domain or range error will occur.
#include <math.h>
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
The absolute value of
The absolute value of -1.500000 is
printf("The absolute value of
printf("The absolute value of
double x, y;
x = 1.75;
y = fabs (x);
x = -1.5;
y = fabs (x);
printf("The absolute value of %f is
float x,y;
x = 1.75F;
y = fabsf (x);
x = -1.5F;
y = fabsf (x);
printf("The absolute value of %f is
floating-point value for which to return the absolute value
floating-point value for which to return the absolute value
/* for fabs
/* for fabsf
1.750000 is
1.750000 is
%f is
%f is
*/
*/
1.750000
1.500000
1.750000
1.500000
%f\n", x, y);
%f\n", x, y);
DS51456E-page 161
%f\n", x, y);
%f\n", x, y);
Related parts for SW006014
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: