Is there a way to check if a number is an integer for instance ?
Could a test like the following work ? I could not find a function like as.integer() or something the like in easyMorph.
if(
floor([VARIABLE]) = ceil([VARIABLE]),
True,
False
)
Is there a way to check if a number is an integer for instance ?
Could a test like the following work ? I could not find a function like as.integer() or something the like in easyMorph.
if(
floor([VARIABLE]) = ceil([VARIABLE]),
True,
False
)
There is no dedicated function to test for integer number. I typically just use
floor([Value]) = [Value]
or
round([Value],0) = [Value]
PS. Note that if(condition, true(), false())
is logically equivaluent to just condtion
.
Hi Dmitry,
Thanks for the response !
Does the logical test I proposed also works ?
Kind regards
It should work too. Only in in EasyMorph it's not ceil
it's ceiling
.