NaN的文字用C? [英] NaN Literal in C?

查看:150
本文介绍了NaN的文字用C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何用C编写的 NaN的浮点文字?


解决方案

在C99的<&math.h中GT;


  7.12数学<&math.h中GT;


  [#5]宏           NAN   当且仅当实现支持安静定义
   NaN的浮子式。它扩展为一个常数
   float类型重新$ P $的前pression psenting静态NaN。 |

How do you write an NaN floating-point literal in C?

解决方案

In C99's <math.h>

  7.12  Mathematics <math.h>

   [#5] The macro

           NAN

   is defined if and only if the implementation supports  quiet
   NaNs   for  the  float  type.   It  expands  to  a  constant
   expression of type float representing a quiet NaN.           |

这篇关于NaN的文字用C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆