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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [test/] [math/] [rint.c] - Rev 1771

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

#include <math.h>
#include <stdlib.h>
#include <stdio.h>
 
int main(void) {
    double d1, d2;
    d1 = 0.6;  d2 = rint(d1);
    printf("d1 = %f, d2 = %f\n", d1, d2);
    return 0;                            
}
 
 

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

powered by: WebSVN 2.1.0

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