1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 2 * 3 * Copyright (C) 2007-2008 Richard Hughes <richard@hughsie.com> 4 * Copyright (C) 2012-2021 MATE Developers 5 * 6 * Licensed under the GNU General Public License Version 2 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 21 */ 22 23 #ifndef __EGG_PRECISION_H 24 #define __EGG_PRECISION_H 25 26 #include <glib.h> 27 28 G_BEGIN_DECLS 29 30 gint egg_precision_round_up (gfloat value, 31 gint smallest); 32 gint egg_precision_round_down (gfloat value, 33 gint smallest); 34 #ifdef EGG_TEST 35 void egg_precision_test (gpointer data); 36 #endif 37 38 G_END_DECLS 39 40 #endif /* __EGG_PRECISION_H */ 41