Recent content by Cbuha

  1. C

    Fortran Weird fortran problem (Assigned variable value doesn't match up with output)

    Thanks guys! I was just kind of confused because the output of the variables of real(kind=8) goes to the correct amount of decimal places. I never really thought it through to declare my assigned values as some type, I just assumed it would assign whatever value I placed there the correct type...
  2. C

    Fortran Weird fortran problem (Assigned variable value doesn't match up with output)

    I ran into a kind of strange thing today while coding. I needed Pi in a program, so I used 2*accos(0.0) to pull it out, but my answers were slightly off. I checked the Pi calculated and it was off after a few decimal places. "Odd", I thought, and just decided to put in Pi as an assigned number...
Back
Top