How to find even odd number

Issue #300 resolved
Former user created an issue

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)

  1. Roman Telezhynskyi repo owner

    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.

  2. Roman Telezhynskyi 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.

  3. Roman Telezhynskyi 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.

  4. Roman Telezhynskyi 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.

  5. Log in to comment