﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-华佗再造丸-随笔分类-算是编程</title><link>http://www.blogjava.net/mater789/category/4109.html</link><description>恭喜你,你找到了服务器</description><language>zh-cn</language><lastBuildDate>Thu, 01 Mar 2007 02:33:08 GMT</lastBuildDate><pubDate>Thu, 01 Mar 2007 02:33:08 GMT</pubDate><ttl>60</ttl><item><title>double类型的数据没有异常</title><link>http://www.blogjava.net/mater789/archive/2005/10/24/16599.html</link><dc:creator>华佗再造丸</dc:creator><author>华佗再造丸</author><pubDate>Mon, 24 Oct 2005 08:30:00 GMT</pubDate><guid>http://www.blogjava.net/mater789/archive/2005/10/24/16599.html</guid><wfw:comment>http://www.blogjava.net/mater789/comments/16599.html</wfw:comment><comments>http://www.blogjava.net/mater789/archive/2005/10/24/16599.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/mater789/comments/commentRss/16599.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/mater789/services/trackbacks/16599.html</trackback:ping><description><![CDATA[<FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff">double类型的数据没有异常，听起来难以让人理解。但仔细想想却也无可厚非。因为没必要,double有4种取值完全可以做到“无异常”。<BR>这4种取值是：+无穷，—无穷，有理数，NaN<BR>可以用Double里的一些函数来判断:<BR><FONT color=#000000 size=2>&nbsp;public boolean isInfinite()</FONT>如果当前 <FONT size=2>Double </FONT>对象的值为无限大，则返回 true。 如果当前对象对应的值为正无限或负无限大，则为 <FONT face="Times New Roman"><CODE><FONT face=新宋体>true</FONT></CODE>，否则为 </FONT><CODE><FONT style="BACKGROUND-COLOR: #ffffff" face="Times New Roman" color=#000000>false<BR>&nbsp;public boolean isNaN()如果当前 Double 对象的值为非数值(NaN)，则返回 true。 如果当前对象表示的值为 NaN，则为 <CODE><FONT face=新宋体>true</FONT></CODE>，否则为 <CODE><FONT face=新宋体>false</FONT></CODE>。 所谓NaN即是更异常差不多的作用例如：1.0/0</FONT></CODE> </FONT></FONT><img src ="http://www.blogjava.net/mater789/aggbug/16599.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/mater789/" target="_blank">华佗再造丸</a> 2005-10-24 16:30 <a href="http://www.blogjava.net/mater789/archive/2005/10/24/16599.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>