ソースを参照

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

HurryStarfish 5 年 前
コミット
2a7f2d4b53
1 ファイル変更2 行追加2 行削除
  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