view future.c @ 22:b7b3b5f1c5a6

Remove unused widgets from N1 measurement panel. Harmonize widgets names
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 19 Jul 2012 20:01:40 +0200
parents 9d57d1fcbcd5
children be814b934eca
line wrap: on
line source

/* welcome in the 2012 */

/* required by CVI */
#include <ansi_c.h>

/* an implementation of the C99 `round` function based on `floor` and `ceil` */
double round(double x)
{
	if (x >= 0.0) {
		double y = floor(x);
		if (x - y >= 0.5)
			y += 1.0;
		return y;
	} else {
		double y = ceil(x);
		if (x - y >= 0.5)
			y -= 1.0;
		return y;
	}
}