Browse Source

Fixed missing return type in IsInf and IsNan. Fixes #177.

HurryStarfish 5 năm trước cách đây
mục cha
commit
2a7f2d4b53
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      math.mod/math.bmx

+ 2 - 2
math.mod/math.bmx

@@ -30,13 +30,13 @@ Rem
 bbdoc: Check if a value is NAN
 returns: True if @x is 'not a number' (eg: Sqr(-1))
 End Rem
-Function IsNan( x:Double )="int bbIsNan(double)!"
+Function IsNan:Int( x:Double )="int bbIsNan(double)!"
 
 Rem
 bbdoc: Check if a value is infinite (eg: 1.0/0.0)
 returns: True if @x is infinite
 End Rem
-Function IsInf( x:Double )="int bbIsInf(double)!"
+Function IsInf:Int( x:Double )="int bbIsInf(double)!"
 
 Rem
 bbdoc: Square root of @x