Oh, bummer, my number isn’t supported by the free version:
https://api.isevenapi.xyz/api/iseven/8764389587485736749956772984692357867345989845699872561/
Just divide that number by two until it’s small enough to make the request under the free version.
pretty sure that has to be against their TOS
/s
That’s against the terms of math :-)
That’s not even supported by the enterprise version. You’re going to need a special agreement with the iseven people to support numbers like that
Easy workaround, just test the last digit. If it is even, the entire number is even, else odd.
That’s preposterous! Next time you’ll tell me the language I’m using has a builtin operator that test if a number can be divided by another!
Only way it could be better is if they threw “AI” in there somewhere.
With the new AI integration, you can get smart isEven results that return the correct answer 90% of the time and a more creative solution 20% of the time.
im glad that people are out there building the web services we truly need.
I love that it works and the ads are pretty good.
The errors are great https://api.isevenapi.xyz/api/iseven/1.5
~~Sadly it’s not always accurate https://api.isevenapi.xyz/api/iseven/0~~ Edit: nevermind I’m an idiot
It’s also greatly lacking in number support https://api.isevenapi.xyz/api/iseven/one
Is even states that it only returns true for even, passing in an odd number is technically unsupported.
zero is even, so i dont see how that one’s wrong
Oh you’re right, I’m not sure what I was Ln thinking
What the fuck is a modulo? Is it some kind of npm package?
Just
MonikaModuloreturn (n % d + d) % d;
?
Funny as hell