如何比较asp.net中的浮点值? [英] How to compare the floating point values in asp.net?
本文介绍了如何比较asp.net中的浮点值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在asp.net中比较浮点值.
is it possible to compare the floating point values in asp.net.
推荐答案
是:
Dim f1 As Double = 12.3
Dim f2 As Double = 14.5
If f1 = f2 Then
' What happened here?
End If
这篇关于如何比较asp.net中的浮点值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文