Browse Source

Removed "= True" from IsInf and IsNan code examples.

HurryStarfish 5 years ago
parent
commit
7a555e7eef
2 changed files with 2 additions and 2 deletions
  1. 1 1
      math.mod/doc/isinf.bmx
  2. 1 1
      math.mod/doc/isnan.bmx

+ 1 - 1
math.mod/doc/isinf.bmx

@@ -1,7 +1,7 @@
 SuperStrict
 
 For Local f:Float=-0.4 Until 0.4 Step 0.2
-    If IsInf(1.0 / f) = True Then
+    If IsInf(1.0 / f) Then
        Print "Divide by Zero"
     Else
        Print "inverse of "+f+" = "+String(1.0/f)

+ 1 - 1
math.mod/doc/isnan.bmx

@@ -1,7 +1,7 @@
 SuperStrict
 
 For Local f:Float=-0.4 Until 0.4 Step 0.2
-    If IsNan(Sqr(f)) = True Then
+    If IsNan(Sqr(f)) Then
        Print "Square Root of "+f+" is not a real number"
     Else
        Print "Square Root of  "+f+" = "+Sqr(f)