站立的鱼 发表于 2006-7-13 04:48:08

比较奇怪的问题 ~~一看保证你忘不了~`

这是一个 很普通的小程序 但是条件就是不能成立 `~~
估计是LabVIEW里的一个小bug
大家看看呢 `~
[此贴子已经被作者于2006-7-12 20:48:25编辑过]

cpubbs 发表于 2006-7-13 06:53:01

<P>兄弟,的确是不同的,你看一下,不过我实在也不太清楚,估计和精度有些关系,你将这二个数相减,有这样的差值:4.44089E-16</P>
<P>其实那个数是大于3。4的!</P>

lgh269 发表于 2006-7-13 07:40:51

我找的这方面资料

我找了下这方面的资料,应该能说明你的问题
你用的是DBL双精度,用SGL改为单精度
我把你的程式改过了,你可以看下
<img src="attachments/dvbbs/2006-7/200671223403083441.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2006-7/200671223403083441.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />

[此贴子已经被作者于2006-7-12 23:41:41编辑过]
页: [1]
查看完整版本: 比较奇怪的问题 ~~一看保证你忘不了~`