Julia - Check if float value is an integer

Viewed 903

Is there a Julian way to check whether a float variable is numerically equal to some integer value?

1 Answers

There is a simple native function in Julia called isinteger()

julia> isinteger(3.0)
true

julia> isinteger(3.1)
false
Related