🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #332

Re: help with converting a double to an integer

#332
From: Paul Murray
Date: Sat, 21 Oct 2000 00:00
11 lines
1037 bytes
> I have a Double Variable A which I need converted to an integer...

An int, or a java.lang.Integer?

int x = A.intValue();
or
Integer x = new Integer(A.intValue());

--------------------------------------------------------------
Repent! Quit your job! Slack off!
http://www.users.bigpond.com/pmurray
Technical Details
Message-ID: <8y8I5.5999$e5.15517@newsfeeds.bigpond.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <PuRH5.1953$SF5.40732@ozemail.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,3eb22abec8262eb3
X-Google-Attributes: gid10d6db,public
From: "Paul Murray" <pmurray@nospam.bigpond.com>
Subject: Re: help with converting a double to an integer
Date: 2000/10/21
Message-ID: <8y8I5.5999$e5.15517@newsfeeds.bigpond.com>
X-Deja-AN: 684040414
References: <PuRH5.1953$SF5.40732@ozemail.com.au>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
X-Trace: newsfeeds.bigpond.com 972100868 139.134.123.46 (Sat, 21 Oct 2000 14:01:08 EST)
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
X-MSMail-Priority: Normal
NNTP-Posting-Date: Sat, 21 Oct 2000 14:01:08 EST
Newsgroups: aus.computers.java