Thread: floating point values

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ^ Read Backwards^
    Join Date
    Sep 2005
    Location
    Earth
    Posts
    282
    Code:
    (acos(-1) * user_input) /180;
    Converts it to radians.

    acos(-1) = arccos(-1) = Pi


    Though, in your code you use no trig functions so why does it matter.
    Also though, just because a number is negative does not mean it is a smaller angle, but the < > will take negative numbers as smaller.
    Last edited by Enahs; 12-14-2005 at 10:32 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How accurate is the following...
    By emeyer in forum C Programming
    Replies: 22
    Last Post: 12-07-2005, 12:07 PM
  2. checking for floating point number
    By ssharish2005 in forum C Programming
    Replies: 6
    Last Post: 10-18-2005, 08:14 PM
  3. floating point question
    By Eric Cheong in forum C Programming
    Replies: 8
    Last Post: 09-10-2004, 10:48 PM
  4. Floating point numbers in a binary file
    By frenchfry164 in forum C++ Programming
    Replies: 6
    Last Post: 07-31-2003, 10:04 AM
  5. Replies: 2
    Last Post: 09-10-2001, 12:00 PM