Question

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

  • 13 February 2019
  • 2 replies
  • 8 views

Badge

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

Userlevel 3
Badge +13

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

Badge

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