🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19031

Re: simple math (add)

#19031
From: Andrew Bennett [ Borland ]
Date: Mon, 16 Mar 1998 00:00
27 lines
1367 bytes
Jeff Cahill wrote:
> 
> Okay I have an Integer, now what?

No need to email and post.  I see duplicates...

Well, BigDecimal's constructors take either a string or
a double, and may throw a NumberFormatException.  So say
'i' is your integer:

BigDecimal myBD = new BigDecimal((double) i));

or something like that.  Depending on your needs...


Andrew
--
  Andrew Bennett
  abennett@borland.com

  Due to my workload, personal email more than likely won't get a reply.
  Support options are detailed at http://www.borland.com/devsupport/
  I am unable to answer support questions via email at this time.

  Check http://www.borland.com/devsupport/jbuilder/ for FAQs and
  additional JBuilder support related help.
Technical Details
Message-ID: <350DA502.F15C8D5F@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <350D755D.5E0D13BB@intersolv.com> <350D929D.A4753147@borland.com> <350D9A40.AF29A042@intersolv.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,340f932d80e414fb
X-Google-Attributes: gidf74b3,public
From: "Andrew Bennett [ Borland ]" <abennett@borland.com>
Subject: Re: simple math (add)
Date: 1998/03/16
Message-ID: <350DA502.F15C8D5F@borland.com>
X-Deja-AN: 334678825
Content-Transfer-Encoding: 7bit
References: <350D755D.5E0D13BB@intersolv.com> <350D929D.A4753147@borland.com> <350D9A40.AF29A042@intersolv.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Borland JBuilder -- http://www.borland.com/jbuilder/
Newsgroups: borland.public.jbuilder.java.language