Results 1 to 3 of 3

Thread: (angle pt1 pt2) decimal places

  1. #1
    Member
    Join Date
    2014-11
    Posts
    21
    Login to Give a bone
    0

    Default (angle pt1 pt2) decimal places

    (Setq angln (angle pt1 pt2))
    How do I get this to give out an angle with 8 decimal places
    I have the units set to 8 and it is draw at 90 or 1.5708 and when I type in (= angln (cvunit 90 "DEGREE" "RADIAN")) nil comes up

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,658
    Login to Give a bone
    0

    Default Re: (angle pt1 pt2) decimal places

    Try: (angtos angln 4)
    The angle function returns radians, converting it from "DEGREE" to "RADIAN" wouldn't make any sense.

  3. #3
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,106
    Login to Give a bone
    0

    Default Re: (angle pt1 pt2) decimal places

    Code:
    (angtos (angle (getpoint)(getpoint)) 0 8)
    will return degrees with 8 decimal places
    AutomateCAD

Similar Threads

  1. Change Decimal Places
    By ELIANDEFI in forum AutoLISP
    Replies: 5
    Last Post: 2016-11-17, 03:17 PM
  2. Hole Chart decimal places
    By Wish List System in forum Inventor Wish List
    Replies: 1
    Last Post: 2013-10-26, 02:05 PM
  3. Decimal places in Area Tag
    By roy.70844 in forum Revit Architecture - General
    Replies: 1
    Last Post: 2010-04-13, 01:55 PM
  4. Decimal places
    By Coolmo in forum VBA/COM Interop
    Replies: 11
    Last Post: 2005-01-31, 09:12 PM
  5. No of decimal places
    By csgohjmj in forum AutoLISP
    Replies: 1
    Last Post: 2004-06-24, 04:45 AM

Posting Permissions

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