Trigonometry functions

Discussion in 'General Discussion' started by SBL, Nov 27, 2011.

  1. SBL

    SBL

    Joined:
    Nov 11, 2009
    Messages:
    48
    Likes Received:
    0
    Location:
    NZ
    Just a quick question if anyone has used the Sin function in logic and knows how many decimal places the sin calculation works to?
     
    SBL, Nov 27, 2011
    #1
  2. SBL

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The "real" numbers are stored in 32 bit IEEE 754 format. This gives 23 bits of mantissa, equivalent to 7 decimal places of accuracy. This should be more than adequate for most real-world requirements.
     
    Darren, Nov 28, 2011
    #2
  3. SBL

    SBL

    Joined:
    Nov 11, 2009
    Messages:
    48
    Likes Received:
    0
    Location:
    NZ
    Thanks for that, yes that should be plenty for most cases
     
    SBL, Nov 28, 2011
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.