The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

I have a java question by benmiller2004-04-05 17:43:31
  Hmmm- trying to get UFies to do your CS homework?? by inittab2004-04-05 18:34:21
    Of course not by benmiller 2004-04-05 18:43:44
I'm a senior in high school. This function is for my own personal 2d library that I'm using to recreate the classic DOS game of tank wars in java.

The problem lies within my rough approximation to infinity. Occasionally, when calculating results with it, the number will be close to, but not QUITE on the second line, like .000000000001,y or x,.0000000000001. I'm experimenting with rounding it off at the moment, and it seems to have fixed a few of the problems with the algorithm, and precision certainly isn't needed in this case, but it still occasionally messes up.
[ Reply ]
      My solution: by benmiller2004-04-05 18:59:42
        Different solution by BrainBug2004-04-05 20:33:27
          Code convention? by benmiller2004-04-05 20:44:06
            Hehe... by BrainBug2004-04-05 20:56:56
          Sign errors by BrainBug2004-04-05 21:32:05

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)