Compare floating point numbers in Latex
Posted
by Abhi
on Stack Overflow
See other posts from Stack Overflow
or by Abhi
Published on 2010-04-20T15:17:19Z
Indexed on
2010/05/06
16:38 UTC
Read the original article
Hit count: 249
I am trying to use \ifthenelse to do a floating point comparison. This is the pgf/tikz code, which works if \y is integer only, but not otherwise:
\foreach \y in {3,3.5,...,6} {
ifthenelse{\y<3}{
...
}{
...
}
}
© Stack Overflow or respective owner