From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Format a whole column using ";%.2f" in orgtbl? Date: Fri, 15 Jun 2012 19:01:35 +0200 Message-ID: References: <30475045.6Ox6BBrYdW@linux-nyil.site> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfZu0-0004Pq-7X for emacs-orgmode@gnu.org; Fri, 15 Jun 2012 13:01:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfZty-0007p0-Dd for emacs-orgmode@gnu.org; Fri, 15 Jun 2012 13:01:39 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:41779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfZty-0007o6-55 for emacs-orgmode@gnu.org; Fri, 15 Jun 2012 13:01:38 -0400 Received: by wibhn14 with SMTP id hn14so661407wib.0 for ; Fri, 15 Jun 2012 10:01:35 -0700 (PDT) In-Reply-To: <30475045.6Ox6BBrYdW@linux-nyil.site> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: AW Cc: emacs-orgmode@gnu.org Hi Alexander On Fri, Jun 15, 2012 at 4:34 PM, AW wrote: > [...] > > Desired outoput: > > | 100.00 | Value | > | 150.00 | Value | > #+TBLFM: $1=%s;%.2f > > [...] What you tried would be | 100.00 | Value | | 150.00 | Value | #+TBLFM: $1=$0;%.2f $0 is the current table field. What I recommend is | 100.00 | Value | | 150.00 | Value | #+TBLFM: $1 = $0 +.0; f-2 because of the behavior I explained in the tables shown here: http://orgmode.org/worg/org-faq.html#table-float-fraction Michael