Welcome to mirror list, hosted at ThFree Co, Russian Federation.

float.c « libgloss.all « testsuite « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbe41ca7e62cba971e9d763d05f1e725ce157a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>

main()
{
  float a,b,c;

  a = 0.11;
  b = 3.12;
  c = a+b;

  printf ("Print float, result with 'f' = %f\n", c);
  printf ("Print float, result with 'e' = %e\n", c);
  printf ("Print float, result with 'E' = %E\n", c);
  printf ("Print float, result with 'g' = %g\n", c);
  printf ("Print float, result with 'G' = %G\n", c);

  pass ("float");
  fflush (stdout);
}