c 判断数字是否无限
2024-09-01 09:38:51
/* isinf example */
#include <stdio.h> /* printf */
#include <math.h> /* isinf, sqrt */ int main()
{
printf ("isinf(0.0) : %d\n",isinf(0.0));
printf ("isinf(1.0/0.0) : %d\n",isinf(1.0/0.0));
printf ("isinf(-1.0/0.0) : %d\n",isinf(-1.0/0.0));
printf ("isinf(sqrt(-1.0)): %d\n",isinf(sqrt(-1.0)));
return ;
}
输出
isfinite(0.0) :
isfinite(1.0/0.0) :
isfinite(-1.0/0.0) :
isfinite(sqrt(-1.0)):
最新文章
- rsync参数及通信
- Algorithm | Binary Search
- MongoDB学习
- IE跨域访问问题
- C#性能测试方法
- Python的平凡之路(5)
- Sql Server 系统表功能
- Java垃圾回收基础
- View页面根据权限显示不同的内容
- Spring+AOP+Log4j 用注解的方式记录指定某个方法的日志
- Spring MVC请求执行流程
- 【编程之外】还记得曾经给&#39;大学导师&#39;写过的报告嘛 -->; 前方高能
- checkbox对齐-复选框图标
- maven引入本地jar 打jar包
- C#+HtmlAgilityPack+Dapper走一波爬虫
- Android进阶(八)Can&#39;t create handler inside thread that has not called Looper.prepare()
- js异步处理历程
- 如何查看本地电脑ip
- CTO 之“六脉神剑”
- 图片和流的相互转化 (c/s)