. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by jcb121 View Post
    any idea on what I can use instead of int?
    Use 'float' - not the most memory efficient way to do it but that's not an issue here. Also you might find it helpful to include math.h.

    Also since those are currently all ints, you might be introducing a big rounding error with pi.
    Old router build log here. New router build log here. Lathe build log here.
    Electric motorbike project here.

  2. #2
    i2i's Avatar
    Lives in Cardiff, United Kingdom. Last Activity: 25-10-2022 Has been a member for 9-10 years. Has a total post count of 699. Received thanks 29 times, giving thanks to others 1 times.
    the depth of an o-ring groove has to be spot on with quite tight tolerances, there are charts available for o-ring sizes.

  3. Quote Originally Posted by Jonathan View Post
    Also since those are currently all ints, you might be introducing a big rounding error with pi.
    It will because of the implicit conversion of the result to int. So 11 * 3.14159 could be treated as

    int(11.0 * 3.14159)=int(34.55)=34

    or

    11 * int(3.14159) = 33

    Either is wrong...

    depending on the compiler. .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Nitrile O-ring belt drive - suggested stretch percentage..?
    By Wal in forum Linear & Rotary Motion
    Replies: 23
    Last Post: 13-05-2014, 11:49 PM
  2. Domestic ring main wiring
    By mekanik in forum General Electronics
    Replies: 1
    Last Post: 15-10-2013, 05:50 PM
  3. RFQ: Simple job cutting simple shapes out of camera lens cap
    By RockandGrohl in forum Projects, Jobs & Requests
    Replies: 15
    Last Post: 20-04-2013, 01:23 AM
  4. how to measure a ring for cnc.
    By crimsonred in forum Probing, Digitizing & Scaning
    Replies: 4
    Last Post: 27-09-2010, 02:47 PM
  5. Scrool jaw ring for hydraulic soft jaws.
    By Pmac in forum Tool & Tooling Technology
    Replies: 4
    Last Post: 28-01-2010, 07:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •