Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profile.txt strips leading sign from numbers #46

Closed
phistoh opened this issue Jun 28, 2022 · 2 comments
Closed

profile.txt strips leading sign from numbers #46

phistoh opened this issue Jun 28, 2022 · 2 comments

Comments

@phistoh
Copy link

phistoh commented Jun 28, 2022

When comparing numeral values (e.g. yaw), the mod strips the leading sign (i.e. the minus sign -) from the (right hand side) comparison.

Consider the following example: {{yaw >= -180, "N", "?"}}
Regardless of the actual yaw-value, the mod shows ? instead of N. (In fact, since the smallest yaw-value is -180 the mod should always display N.)

Another example is {{yaw >= -67, "SE", "?"}}.
In this case, the mod displays SE if the actual yaw-value is in between 67.0 and 179.9 and ? if the value is between -179.9 and 66.9—though the expected output would be ? from -179.9 to -66.9 and SE from -67.0 onwards.

@Minenash
Copy link
Owner

Minenash commented Jul 2, 2022

Apparently I forgot to add the negative sign for the parsing. Fixed, will be in today's release

@Minenash Minenash closed this as completed Jul 2, 2022
@Minenash Minenash reopened this Jul 2, 2022
@Minenash
Copy link
Owner

Minenash commented Jul 3, 2022

Fixed in v2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants