<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>http://202.127.29.3/~shen/wiki/index.php?action=history&amp;feed=atom&amp;title=%E7%89%B9%E6%AE%8A%E5%80%BC_%21Values</id>
	<title>特殊值 !Values - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://202.127.29.3/~shen/wiki/index.php?action=history&amp;feed=atom&amp;title=%E7%89%B9%E6%AE%8A%E5%80%BC_%21Values"/>
	<link rel="alternate" type="text/html" href="http://202.127.29.3/~shen/wiki/index.php?title=%E7%89%B9%E6%AE%8A%E5%80%BC_!Values&amp;action=history"/>
	<updated>2026-05-13T07:08:40Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.38.1</generator>
	<entry>
		<id>http://202.127.29.3/~shen/wiki/index.php?title=%E7%89%B9%E6%AE%8A%E5%80%BC_!Values&amp;diff=2662&amp;oldid=prev</id>
		<title>Shen：​创建页面，内容为“:NAN and Infinity value    IDL&gt; help,!Values,/str  ** Structure !VALUES, 4 tags, length=24, data length=24:    F_INFINITY      FLOAT               Inf    F_NAN...”</title>
		<link rel="alternate" type="text/html" href="http://202.127.29.3/~shen/wiki/index.php?title=%E7%89%B9%E6%AE%8A%E5%80%BC_!Values&amp;diff=2662&amp;oldid=prev"/>
		<updated>2017-06-05T13:55:48Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“:NAN and Infinity value    IDL&amp;gt; help,!Values,/str  ** Structure !VALUES, 4 tags, length=24, data length=24:    F_INFINITY      FLOAT               Inf    F_NAN...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;:NAN and Infinity value &lt;br /&gt;
&lt;br /&gt;
 IDL&amp;gt; help,!Values,/str&lt;br /&gt;
 ** Structure !VALUES, 4 tags, length=24, data length=24:&lt;br /&gt;
   F_INFINITY      FLOAT               Inf&lt;br /&gt;
   F_NAN           FLOAT               NaN&lt;br /&gt;
   D_INFINITY      DOUBLE            Infinity&lt;br /&gt;
   D_NAN           DOUBLE                 NaN&lt;br /&gt;
 Inf还可取负&lt;br /&gt;
 IDL&amp;gt; print,-1*!Values.F_INFINITY&lt;br /&gt;
         -Inf&lt;br /&gt;
 问题：如何给一个整数变量赋一个NAN 或者 INFINITY&lt;br /&gt;
&lt;br /&gt;
:F_INFINITY可以和浮点数做比较 F_NAN不能&lt;br /&gt;
 B = [1.0, 2.0, !VALUES.F_NAN]&lt;br /&gt;
 IDL&amp;gt; PRINT, WHERE(B EQ !VALUES.F_NAN&lt;br /&gt;
          -1&lt;br /&gt;
:在求平均等计算时，设置/NAN开关，可将这些数忽略&lt;br /&gt;
 IDL&amp;gt; print,mean(B)&lt;br /&gt;
          NaN&lt;br /&gt;
 IDL&amp;gt; print,mean(B,/NAN)&lt;br /&gt;
      1.50000&lt;/div&gt;</summary>
		<author><name>Shen</name></author>
	</entry>
</feed>