At least tell him how to get Pi properly!

by Unseen (no login)

Pi = 4 * ATN(1)

;)

Posted on May 24, 2011, 4:52 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
*Yes, but the specification said "Take 3.142 for II". I'd say follow the spec.Michael Calkins on May 24
*A fair approximation of Pi: 355/113Kewbie on May 25
 that's only 7 digitsunclejed613 on Jun 22
  * You don't need to guess! ... PI# = 4 * ATN(1#)Clippy on Jun 22
   and the reason...Michael Calkins on Jun 23
    Unfortunately Qbasic won't allow it to define a CONSTantClippy on Jun 23
     * I don't see why not... C and C++ both allow it...ChronoKitsune on Jun 23
      Because Galleon seems to LIKE ERRORS!Clippy on Jun 23
     Re: Unfortunately Qbasic won't allow it to define a CONSTantMichael Calkins on Jun 23
      I tried to get a Constant PI value for QB64Clippy on Jun 23
       Don't really see the point of CONSTDavid on Jun 24
        * Um... Avogardo's number is 6.022e23 not 6.626e23...qbguy on Jun 24
         So that's why I get the wrong answerDavid on Jun 24
          * THATS THE REASON! You CAN FORGET THEM silly!Clippy on Jun 24
        Re: Don't really see the point of CONSTMichael Calkins on Jun 24
         a quick disclaimerMichael Calkins on Jun 24
          Yes I think you're correctDavid on Jun 24
       _pi, perhaps...Michael Calkins on Jun 24
  *welcome to the forum, unclejed.Michael Calkins on Jun 23

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement