Article View: borland.public.jbuilder.java.language
Article #16989newby, confused... converting decimal numbers to int.??
From: Paul Thompson
Date: Tue, 22 Dec 1998 00:00
Date: Tue, 22 Dec 1998 00:00
27 lines
1733 bytes
1733 bytes
Hello! (if this isnt the right place to post a question like this, please let me know.. cheers).. Pretty new to java am i, experience is limited to designing an animated button for myself so far, my new project is an an applet which moves points around the screen at varying speeds and accelerations...(the speed of a point needs to have decimal points in my applet otherwise the result isnt smooth, and no small diferentiations between speeds can be made. Am i missing something and is there some kind of class that does this kind of thing for me??) Questions: a number with a decimal point is called a float ( is this true?? ) images can only be printed at 'int' coordinates ( is this true?? ) how would i convert a float to the nearest int so that i can print the bugger to screen. (the speed of a point needs to have decimal points in my applet otherwise the result isnt smooth, and no small diferentiations between speeds can be made. Am i missing something and is there some kind of class that does this kind of thing for me??) Regards, Paul
Technical Details
Message-ID:
<75p90e$1p7m$1@quince.news.easynet.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a9fcbf50e3134f16,start X-Google-Attributes: gidf74b3,public From: "Paul Thompson" <antland@easynet.co.uk> Subject: newby, confused... converting decimal numbers to int.?? Date: 1998/12/22 Message-ID: <75p90e$1p7m$1@quince.news.easynet.net> X-Deja-AN: 424997841 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@easynet.net X-Trace: quince.news.easynet.net 914368334 58614 194.72.37.240 (22 Dec 1998 23:12:14 GMT) Organization: [posted via Easynet Ltd] NNTP-Posting-Date: 22 Dec 1998 23:12:14 GMT Newsgroups: borland.public.jbuilder.java.language