Jump to content

Search the Community

Showing results for tags 'decimals'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 2 results

  1. Am writing lsp code to process lat/lng data points. The source program writes out to xlsx. When I read in the file (many thanks to Shadi - see link below) it rounds/truncates the lat/lng data to 4 decimal places. I'd like to get as much precision as possible. Can anyone help me through this? Shadi's code starts with this: (vlax-get-object "Excel.Application.16") and reads the entire file to a list quite quickly. But I cannot find a way around the 4 decimal limit read into AutoCAD. Many Thanks! Excel source data: Lisp result (with job name deleted):
  2. I have two instances: 1) I have the number for example 1.025, and I want the computer give me as answer 1.10, other example will be: I have 1.08, and I want the computer give me as answer 1.10. its like a rounding up. 2)I have the number for example 0.7625, and I want the computer give me as answer 0, 7 other example will be: I have 0.51, and I want the computer give me as answer 0.5 (can use the first decimal) its like a rounding down ¿How can I do? the code "round" doesnt exist anymore.
×
×
  • Create New...