Skip to content

Why does is_float(foo) not tell Vector that it can evaluate foo <= 0.23? (E100 issue) #752

Answered by jszwedko
jerrac asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jerrac !

The issue is that the compiler isn't smart enough to realize that .gauge.value is a float at the point where that comparison is done. You'll need to wrap it in float!(.gauge.value). #91 is tracking this as an enhancement.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jerrac
Comment options

Answer selected by jerrac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants