Skip to main content
Solved

Rounding Decimal Degrees

  • July 5, 2019
  • 2 replies
  • 37 views

deanhowell
Influencer
Forum|alt.badge.img+24

Hello,

I am trying to validate the angle of a range of lines to see if they are within plus or minus 10 seconds of a label on the line.

I was looking for something similar to the Attribute Rounder but that allows you to specify a value rather than decimal places.

The Attribute Range Filter seems close but the values are in a list.

If anyone has some suggestions that would be very much appreciated.

Regards

Dean

 

Best answer by ebygomm

You can use negative numbers in the decimal places parameter in an attribute rounder if you want to round to the nearest 10/100 etc.

 

If you want to test whether something is within plus or minus 10 seconds though I'd use this sort of expression in a tester

 

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

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • July 5, 2019

You can use negative numbers in the decimal places parameter in an attribute rounder if you want to round to the nearest 10/100 etc.

 

If you want to test whether something is within plus or minus 10 seconds though I'd use this sort of expression in a tester

 


deanhowell
Influencer
Forum|alt.badge.img+24
  • Author
  • Influencer
  • 315 replies
  • July 8, 2019

You can use negative numbers in the decimal places parameter in an attribute rounder if you want to round to the nearest 10/100 etc.

 

If you want to test whether something is within plus or minus 10 seconds though I'd use this sort of expression in a tester

 

Thanks again @egomm, that is very close to what I need to do. Thanks for taking the time to put together the screenshot as that helps a lot.