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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With