source: trunk/libs/newlib/src/libgloss/testsuite/libgloss.all/float.c @ 612

Last change on this file since 612 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 387 bytes
Line 
1#include <stdio.h>
2
3main()
4{
5  float a,b,c;
6
7  a = 0.11;
8  b = 3.12;
9  c = a+b;
10
11  printf ("Print float, result with 'f' = %f\n", c);
12  printf ("Print float, result with 'e' = %e\n", c);
13  printf ("Print float, result with 'E' = %E\n", c);
14  printf ("Print float, result with 'g' = %g\n", c);
15  printf ("Print float, result with 'G' = %G\n", c);
16
17  pass ("float");
18  fflush (stdout);
19}
20
Note: See TracBrowser for help on using the repository browser.