OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [testsuite/] [libgloss.all/] [float.c] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
#include <stdio.h>
2
 
3
main()
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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.