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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [linux/] [uClibc/] [test/] [math/] [rint.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
#include <math.h>
2
#include <stdlib.h>
3
#include <stdio.h>
4
 
5
int main(void) {
6
    double d1, d2;
7
    d1 = 0.6;  d2 = rint(d1);
8
    printf("d1 = %f, d2 = %f\n", d1, d2);
9
    return 0;
10
}
11
 

powered by: WebSVN 2.1.0

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