emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* rounding (up)
@ 2017-06-22  7:28 Uwe Brauer
  2017-06-22 12:02 ` John Kitchin
  2017-06-22 12:34 ` Marco Wahl
  0 siblings, 2 replies; 5+ messages in thread
From: Uwe Brauer @ 2017-06-22  7:28 UTC (permalink / raw)
  To: emacs-orgmode


Hi

It seems that org-table (and the underlying calc implementation) round
down not up.


Please consider

| 3.25 | 0.4875 |
|  6.5 |  0.975 |
#+TBLFM: $2=$1*0.15;


| 3.25 | 0.49 |
|  6.5 | 0.97 |
#+TBLFM: $2=$1*0.15;%.2f

Is there a way to obtain

| 3.25 | 0.49 |
|  6.5 | 0.98 |
#+TBLFM: $2=$1*0.15;%.2f

That is to replace rounding down to rounding up?

Thanks

Uwe Brauer 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-23  9:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22  7:28 rounding (up) Uwe Brauer
2017-06-22 12:02 ` John Kitchin
2017-06-22 16:54   ` Uwe Brauer
2017-06-22 12:34 ` Marco Wahl
2017-06-23  9:50   ` Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).