Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Strange response

  1. Dec 7, 2014 #1
    I have tried to use the intrinsic' fraction' function in Fortran but have failed to understand how it works. I thought that it would return the fractional part of a real number, but when I ran a few numbers through it, I got something that was a far cry from what I expected. For example, I tried fraction(10.0) and got 0.625. Can you tell me what's wrong?
     
  2. jcsd
  3. Dec 7, 2014 #2

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Strange response
  1. Strange error (Replies: 4)

  2. FORTRAN strange issue (Replies: 7)

Loading...