/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        A U G M E N T E R   L A   P R E C I S I O N   N ' A M E L I O R E   P A S   T O U J O U R S   L A   Q U A L I T E  :       */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xtc/SimpleDoublePrecision.01$c' :                                                                              */
/*                                                                                                                                   */
/*                    Jean-Francois Colonna (LACTAMME, 20210625111224).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

#include  <stdio.h>

void      main()
          {
          float     fA,fB;
          double    dA,dB;

          fB=4095.1;
          fA=fB+1;

          dB=4095.1;
          dA=dB+1;

          if        ((fA-fB) == 1)
                    {
                    printf("(fA-fB) = 1\n");
                    }
          else
                    {
                    printf("(fA-fB) # 1\n");
                    }

          if        ((dA-fB) == 1)
                    {
                    printf("(dA-fB) = 1\n");
                    }
          else
                    {
                    printf("(dA-dB) # 1\n");
                    }
          }



Copyright © Jean-François Colonna, 2021-2021.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / Ecole Polytechnique, 2021-2021.