Is there a Julian way to check whether a float variable is numerically equal to some integer value?
Is there a Julian way to check whether a float variable is numerically equal to some integer value?
There is a simple native function in Julia called isinteger()
julia> isinteger(3.0)
true
julia> isinteger(3.1)
false