round to the nearest integer

Options

Hey there,

does it exist a "MROUND" filter in Xano to get the nearest integer of a number?

62.48 ⇒ 62

62.52 ⇒ 63

Thank you

Tagged:

Best Answer

  • Liz Anaya
    Liz Anaya Member, Administrator

    ADMIN

    Answer ✓
    Options

    Hi @TD! 👋

    Check out the round math filter.

    https://docs.xano.com/working-with-data/data-type-filters/math-filters#round-x-precision

    Let me know if this is helpful or if you have any follow-up questions. 😊

Answers

  • TD
    TD Member
    Options

    Hi Izanaya,

    it's definitely helpful, I misunderstood the round filter when I wrote about it, but it works perfectly. thank you!

  • Liz Anaya
    Liz Anaya Member, Administrator

    ADMIN

    Options

    Yay! Glad to hear it's working! 👏👏

    If you have any additional questions, don't hesitate to reach out. 😃