emacs/var/elfeed/db/data/2f/2f74f8ea6b655135daeca63e49262bcee55d72b4
2022-01-03 12:49:32 -06:00

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&#39; 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&#39; 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 --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/pnd18r/substraction_in_table/">[comments]</a></span>