NO

Author Topic: FLT_MIN  (Read 1938 times)

Offline PaoloC13

  • Member
  • *
  • Posts: 44
FLT_MIN
« on: April 27, 2019, 04:00:06 AM »
I tested my system to see which smallest number could be non-zero.

My result is this:

   float x = 8.0e-46f; // != 0.0f.
   float y = 7.0e-46f; // == 0.0f.

but I see in float.h that:

#define FLT_MIN    1.175494351e-38F

So, why this difference?
May be that FLT_MIN is system-dependent?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: FLT_MIN
« Reply #1 on: April 27, 2019, 09:23:18 AM »
May the source be with you

Offline PaoloC13

  • Member
  • *
  • Posts: 44
Re: FLT_MIN
« Reply #2 on: April 27, 2019, 02:21:52 PM »
Well, so I met the smallest positive subnormal number, or may be the minimal rounded position for it.