/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        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-2024.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2021-2024.