• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: convert a double value to Number ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert a double value to Number ?


  • Subject: Re: convert a double value to Number ?
  • From: Dirk Bajohr <email@hidden>
  • Date: Mon, 28 Jun 2004 15:08:35 +0200

double -> Number:
Double d = new Double(double_value);
(Double is a subclass of Number)

Number -> double:
double double_value = d.doubleValue();

Cheers,
Dirk


Am 28.06.2004 um 14:39 schrieb Goh Keng Boon:

Hi guys,

I need to get data from my table, do some calculation and store it back, but i got difficulty in "casting" my double to Number.
Any idea how can i do that? Or this is not the correct method?


Thanks.

KB
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.



--
Dirk Bajohr
iSOLUTION - Individuelle Software fuer moderne Kommunikation

Hauptstr. 50
53757 Sankt Augustin

T +49 2241 921567-0
F +49 2241 921567-89
http://www.isolution.de
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >convert a double value to Number ? (From: Goh Keng Boon <email@hidden>)

  • Prev by Date: convert a double value to Number ?
  • Next by Date: Problem with saving in EOEditingContext
  • Previous by thread: convert a double value to Number ?
  • Next by thread: Problem with saving in EOEditingContext
  • Index(es):
    • Date
    • Thread