How to find even odd number
Hi Roman, I'm struggling to find even odd number - mod operator or equivalent. Please can you help? This is not an issue though, only requesting information please. Thanks, Preethi.
Comments (9)
-
repo owner -
repo owner I wrote Ingo (author of the muparser) if he will make support for mod operator then i will port changes to our fork qmuparser. I am not very good with muparser code, author will make job much better than i. And this change will appear only in major release closest is 0.4.0.
-
repo owner - changed status to open
I think it's a good idea.
-
Account Deleted Thanks Roman. Any form is better. Now I'm having to do this manually.
-
repo owner I can make now only function mod(x, y). I spoke with Ingo and he doesn't want add mod operator (%), but did not answer on my idea about "mod" operator like in Pascal.
-
repo owner - changed status to resolved
Resolved issue
#300. How to find even odd number.→ <<cset 1c8f636113f6>>
-
repo owner New function fmod.
Usage:
fmod(5;2)
Take both float and int values.
-
Account Deleted Hi Roman, is this available in next release? Thanks, Preethi.
-
repo owner Hi Roman, is this available in next release? Thanks, Preethi.
It will only in next major release 0.4.0. Next minor 0.3.2 only for bug fixes.
- Log in to comment
Hi, Preethi.
No, unfortunately we do not support mod operator now. In Valentina we use fork of the muparser. The muparser doesn't support mod operator.
I think we could add mod operator if you need him. But i am not sure in which form: operator (hard way) or function (more easy way).
Additionally i will try ask the author of the muparser if he can help.