User Profile

Collapse

Profile Sidebar

Collapse
Xander314
Xander314
Last Activity: Feb 1 '08, 06:28 PM
Joined: Dec 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Xander314
    replied to Negative Zero Help
    in Java
    I removed the code that truncates the decimals and the number actually is zero. Or at least it's 0.000000. And when I do the math on paper I get zero for the problem values. This just baffles me....
    See more | Go to post

    Leave a comment:


  • Xander314
    started a topic Negative Zero Help
    in Java

    Negative Zero Help

    I am writing a program to find the coordinates of points on a unit circle. Everything works fine except for a minor aesthetic issue. Here is the code and then I'll discuss the problem:

    Code:
    public class PointsOnACircleV1
    {
        public static void main(String[] args)
        {
            double radius = 1.0;
            
            double y1 = 0.0;
            double y2 = 0.0;
    ...
    See more | Go to post
No activity results to display
Show More
Working...