Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert a double value to Number ?



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.