Skip to main content
Solved

How to Round up / Round down in a bot

  • June 21, 2023
  • 4 replies
  • 899 views

Forum|alt.badge.img+1

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
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • 625 replies
  • Answer
  • June 21, 2023

try just assign to integer, so it will round automatically


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • 38 replies
  • August 29, 2024

try just assign to integer, so it will round automatically

Could you be more specific?


Forum|alt.badge.img+5
  • Navigator | Tier 3
  • 18 replies
  • 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


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • 38 replies
  • August 29, 2024

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