/* * Copyright (C) 2013 INRIA * * This file is subject to the terms and conditions of the GNU Lesser General * Public License. See the file LICENSE in the top level directory for more * details. */ /** * @ingroup tests * @{ * * @file * @brief Float test application * * @author Oliver Hahm * * @} */ #include #include #include int main(void) { double x = 1234567. / 1024., z; while (1) { x += 0.1; z = x - floor(x); if (z >= 1) { putchar('+'); } else { putchar('-'); } } }