Kaynağa Gözat

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

HurryStarfish 5 yıl önce
ebeveyn
işleme
2a7f2d4b53
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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
 bbdoc: Check if a value is NAN
 returns: True if @x is 'not a number' (eg: Sqr(-1))
 returns: True if @x is 'not a number' (eg: Sqr(-1))
 End Rem
 End Rem
-Function IsNan( x:Double )="int bbIsNan(double)!"
+Function IsNan:Int( x:Double )="int bbIsNan(double)!"
 
 
 Rem
 Rem
 bbdoc: Check if a value is infinite (eg: 1.0/0.0)
 bbdoc: Check if a value is infinite (eg: 1.0/0.0)
 returns: True if @x is infinite
 returns: True if @x is infinite
 End Rem
 End Rem
-Function IsInf( x:Double )="int bbIsInf(double)!"
+Function IsInf:Int( x:Double )="int bbIsInf(double)!"
 
 
 Rem
 Rem
 bbdoc: Square root of @x
 bbdoc: Square root of @x