LINUX.ORG.RU

из man 3 printf:

       g,G    The double argument is converted in style f or e (or
              F or E  for G  conversions).

в чем вопрос-то?
NAN есть Not-A-Number. RTFM, man 3 isnan

murla
()
Ответ на: комментарий от anonymous

Может, все-таки man 3 printf не слабо почитать, а???

Оттуда (раздел про g,G)
...
Style e is used _if the exponent from its conversion is less than -4_ or greater than or equal to the precision.
...

octy ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.