🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Newbie Truncate question

#7440
From: Michael Rachow
Date: Tue, 19 Jun 2001 13:19
19 lines
1209 bytes
By making it an instance of class Double.

double yourDoubleVar = 123.987;
int intgr;
intgr =  new Double(yourDoubleVar).intValue();

Michael

"Phil Barber" <barber@galtney.com> schrieb im Newsbeitrag
news:3b2f52a0_1@dnews...
> How do I truncate a double
> (in delphi:  integer := trunc(double);)
> in Java???
>
> thanks
> Phil.
>
>
>
Technical Details
Message-ID: <3b2f553b$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b2f52a0_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,568d12e56ba0c6bd
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-19 06:41:51 PST
From: "Michael Rachow" <mrachow@BeraCom.de>
Newsgroups: borland.public.jbuilder.java.language
References: <3b2f52a0_1@dnews>
Subject: Re: Newbie Truncate question
Date: Tue, 19 Jun 2001 15:19:49 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 62.226.214.107
Message-ID: <3b2f553b$1_2@dnews>
X-Trace: dnews 992957755 62.226.214.107 (19 Jun 2001 06:35:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews