SW006013 Microchip Technology, SW006013 Datasheet - Page 98
SW006013
Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet
1.SW006014.pdf
(246 pages)
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
- Current page: 98 of 246
- Download datasheet (3Mb)
DS51456E-page 94
atof
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
Converts a string to a double precision floating-point value.
<stdlib.h>
double atof(const char *s);
s
Returns the converted value if successful; otherwise, returns 0.
The number may consist of the following:
optional whitespace, followed by an optional sign then a sequence
of one or more digits with an optional decimal point, followed by one
or more optional digits and an optional e or E followed by an optional
signed exponent. The conversion stops when the first unrecognized
character is reached. The conversion is the same as strtod(s,0)
except it does no error checking so errno will not be set.
#include <stdio.h>
#include <stdlib.h> /* for atof
int main(void)
{
}
Output:
String = "1.28"
String = "27.835:e2" float = 2783.500000
String = "Number1"
[whitespace] [sign] digits [.digits]
char a[] = " 1.28";
char b[] = "27.835e2";
char c[] = "Number1";
double x;
x = atof(a);
printf("String = \"%s\" float = %f\n", a, x);
x = atof(b);
printf("String = \"%s\" float = %f\n", b, x);
x = atof(c);
printf("String = \"%s\"
[ { e | E }[sign]digits]
pointer to the string to be converted
/* for printf */
float = 1.280000
float = 0.000000
float = %f\n", c, x);
© 2008 Microchip Technology Inc.
*/
Related parts for SW006013
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: