Timeline for arithmetic operations with \ifthenelse
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| 2 days ago | comment | added | Werner♦ | @underflow: \ifnum\fpeval{(\numA + sqrt(2) * \numB > 4) && (\numA - sqrt(2) * \numB < 0)} = 1 <true> \fi. Look at the xfp documentation for an overview of all the options provided. | |
| Nov 23 at 21:44 | comment | added | underflow | Thanks@Werner. Actually what I needed is (\numA + 1.414*\numB) < 4 AND (\numA - 1.414*\numB)> 0. When I put in the decimals I got errors, and without the decmial \ifnum ignores the \and. What is the correct syntax for handling the decmial PLUS the \and? I have edited my post to reflect this. Thanks! | |
| Nov 23 at 18:20 | history | answered | Werner♦ | CC BY-SA 4.0 |