1 line
1 KiB
Plaintext
1 line
1 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>I have the following table and formular and wonder why the first one doesn' work:</p> <pre><code>| data | number1 | number2 | delta | |-------+---------+---------+-------| | data1 | 23 | 4 | -92 | | data2 | 4 | 0 | 0 | | data3 | 1 | 0 | 0 | #+TBLFM: $4=(- $2 $3) </code></pre> <p>But when I do:</p> <pre><code>| data | number1 | number2 | delta | |-------+---------+---------+-------| | data1 | 23 | 4 | 19 | | data2 | 4 | 0 | 4 | | data3 | 1 | 0 | 1 | #+TBLFM: $4=(+ $2 -$3) </code></pre> <p>It works as expected.</p> <p>Even in debug-mode I don' understand why in column 1 (- $2 $3) is -92 and not 19. (and why the others are 0 in the first example)</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/nielskob"> /u/nielskob </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/pnd18r/substraction_in_table/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/pnd18r/substraction_in_table/">[comments]</a></span> |