🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Newbie Truncate question

#7421
From: Mark Griffiths
Date: Fri, 22 Jun 2001 08:06
11 lines
1100 bytes
"dnoyeB" <lamont_gilbert @ rigidsoftware.com> wrote:
> Take the low road...
> double z = 1.02;
> int x = (int)z;
>
> not more complicated than that.

This will round, not truncate.

--
Mark
Technical Details
Message-ID: <3b32fc72$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b2f52a0_1@dnews> <3b327232$1_2@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-22 01:09:28 PST
From: "Mark Griffiths" <DONT.SPAM.mark@chive.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b2f52a0_1@dnews> <3b327232$1_2@dnews>
Subject: Re: Newbie Truncate question
Date: Fri, 22 Jun 2001 09:06:24 +0100
Lines: 13
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: 213.122.70.145
Message-ID: <3b32fc72$1_1@dnews>
X-Trace: dnews 993197170 213.122.70.145 (22 Jun 2001 01:06:10 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews