Skip to main content
Cadet | Tier 2
June 21, 2023
Solved

How to Round up / Round down in a bot

  • June 21, 2023
  • 4 replies
  • 1098 views

I want to round up and round down a number which is stored in a variable.  Is there any action which can do it?

    Best answer by rbkadiyam

    try just assign to integer, so it will round automatically

    4 replies

    rbkadiyam
    Premier Pathfinder | Tier 7
    rbkadiyamAnswer
    Premier Pathfinder | Tier 7
    June 21, 2023

    try just assign to integer, so it will round automatically

    Ramesh B Kadiyam
    Navigator | Tier 3
    August 29, 2024

    try just assign to integer, so it will round automatically

    Could you be more specific?

    Navigator | Tier 3
    August 29, 2024

    @rbkadiyam , round to a specified precision? Meaning, round 10.5 to 11, or 10.25 to 10.3, or 10.123 to 10.12? It sounds like you might be writing a bot. There is a Math package that might get you there.

    https://s3-us-west-2.amazonaws.com/botstore-media/wp-content/uploads/2022/02/07130516/automation-360-math-package.pdf?_fsi=tE7Znmvx

    -dvn

    Navigator | Tier 3
    August 29, 2024

    That math bot hasn’t been updated since 2022 and is very limiting, is there another solution?