Skip to main content
Question

How can i use the ExpressionEvaluator to round to the closest .5 of a meter

  • February 13, 2019
  • 2 replies
  • 140 views

Forum|alt.badge.img

I have starting values like 1.35m and I would like to round up to the nearest half a meter, so in this example 1.35 becomes 1.50

1.89 becomes 2.00 etc.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • February 13, 2019

Hi @shanetorrens3 I think you would multiply by 2, round, then divide by 2. e.g. @round(@Value(input_number) * 2) / 2


Forum|alt.badge.img
fmelizard wrote:

Hi @shanetorrens3 I think you would multiply by 2, round, then divide by 2. e.g. @round(@Value(input_number) * 2) / 2

Thanks Dan :)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings