We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Math.isFinite
1 parent 16d5977 commit 552b00bCopy full SHA for 552b00b
1 file changed
std/cxx/_std/Math.hx
@@ -111,6 +111,14 @@ extern class Math {
111
@:native("round")
112
public extern static function fround(v:Float): Float;
113
114
+ #if haxe5
115
+
116
+ @:include("cmath", true)
117
+ @:nativeFunctionCode("std::isfinite((double){arg0})")
118
+ public extern overload static function isFinite(f: Float): Bool;
119
120
+ #else
121
122
@:include("cmath", true)
123
@:native("std::isfinite")
124
public extern overload static function isFinite(f: Float): Bool;
@@ -119,6 +127,8 @@ extern class Math {
127
@:nativeFunctionCode("std::isfinite((double){arg0})")
128
public extern overload static function isFinite(f: Int): Bool;
129
130
+ #end
131
132
133
@:native("std::isnan")
134
public extern static function isNaN(f: Float): Bool;
0 commit comments