Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 63546 invoked from network); 15 Jul 2009 18:44:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 18:44:57 -0000 Received: (qmail 77067 invoked by uid 500); 15 Jul 2009 18:45:05 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 76962 invoked by uid 500); 15 Jul 2009 18:45:05 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 76952 invoked by uid 99); 15 Jul 2009 18:45:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 18:45:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.217.219 as permitted sender) Received: from [209.85.217.219] (HELO mail-gx0-f219.google.com) (209.85.217.219) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 18:44:56 +0000 Received: by gxk19 with SMTP id 19so6598519gxk.18 for ; Wed, 15 Jul 2009 11:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=a7eeXQFQB0KF4Csf7IgM2JSZUoWVsgPAVZ1UugZfFuA=; b=unKwWMby/bKOnrfF/t1MT6r+UBtsCbQ6+6HPxMWaHigxF45Poz547O5tUy5EZvj/JW zy2oZYc16L/ch8F68/CuK0a5FbrC7nmCD8ATKGbamkP8C6c7gl+gQT8AQM4f86+3YcOK q+BJiaLIOAnvvYmaqIjLv60f65vjv50iEDb34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=KUKt/BYCk9LkAYW9hme9yp9VXibYsI08+0S209bZFxDBV0Xew7TXte3NzsaJ+BZfk2 /QZ2JSXQ7IJf1LDoPxm9bU+zjJ67b+f1eUfHOUbnBLk/PoHPhcnX+c2oR1V71JOby86o WdKcqjt6unCLwmSoCK1ju+vWTj7Du+wLbt2po= MIME-Version: 1.0 Received: by 10.150.230.13 with SMTP id c13mr13055778ybh.192.1247683475080; Wed, 15 Jul 2009 11:44:35 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Wed, 15 Jul 2009 11:44:15 -0700 Message-ID: Subject: Re: utils to display currency for any bigdecimal To: Commons Users List Content-Type: multipart/alternative; boundary=000e0cd47c945305a3046ec2f26a X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd47c945305a3046ec2f26a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I find manuals very handy for questions like this: http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintWriter.html#printf(java.lang.String,%20java.lang.Object.. .) http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object.. .) On Wed, Jul 15, 2009 at 10:28 AM, tubin gen wrote: > Is there any utils to display a bigdecimal with $56,98 > for example is there any utils which takes a bigdecimal , does not throw > exception if it is null and if not then formats to comma seperated number > with $ symbol before ? > --000e0cd47c945305a3046ec2f26a--