fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Round results

    Questions & Answers
    2
    4
    2565
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      martin 1 last edited by

      Hello Coders,

      I am using a formula.How can I round the result?

      For example: 24 / 10 = 2.4 - it should round it to 2.0

      Thank you for your help.

      Best regards,
      Martin

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        Use a "Custom MQL block" with this function

        https://www.mql5.com/en/docs/math/mathround

        1 Reply Last reply Reply Quote 0
        • M
          martin 1 last edited by

          Hello Jose,

          thank you for your message. I have tried it but I am getting some errors. Can you send me an example please.

          Best regards,
          Martin

          1 Reply Last reply Reply Quote 0
          • J
            josecortesllobat last edited by

            0_1545060548615_d0dd1f68-d5b8-479d-bcb2-0284523b0228-image.png

            0_1545060619901_a5b03921-1077-4e2f-93bc-a246c5f665bc-image.png

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            R
            F
            S
            D
            V
            O

            19
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors