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
  • 98 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.

2 replies

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • 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 :)


Reply


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