• Help Home
  • English (US)
    1. English (US)
    2. 简体中文
    3. 繁體中文
    4. Čeština
    5. Deutsch
    6. Español
    7. Français
    8. Italiano
    9. 日本語
    10. 한국어
    11. Polski
    12. Português (Brasil)
    13. Русский
Inventor 2026
    • Inventor What's New
      • What's New in Inventor 2026
      • What's New for Previous Releases
    • Inventor Release Notes
    • Get Started Videos
    • Tutorials
    • Inventor Help Topics
    • Programming Interface
    • iLogic
    • iLogic API
      • Overview
      • Rule objects
      • What's New
      • Autodesk.iLogic.Interfaces
      • Autodesk.iLogic.Runtime
        • LmiMath Class
          • LmiMath Methods
            • Ceil Method
            • EqualWithinTolerance Method
              • EqualWithinTolerance Method (Double, Double)
              • EqualWithinTolerance Method (Double, Double, Double)
            • Ln Method
            • MakeList Method
            • MakePath Method
            • MaxOfMany Method
            • MinOfMany Method
            • Sign0 Method
        • MathString Class
        • ModelStatesGlobalScope Class
        • RoundingMethod Enumeration
        • RunDialogs Class
      • Autodesk.iLogic.Types
      • Autodesk.iLogic.Vault
    • Inventor Installation
    • Subscription Benefits
    Share
    • Email
    • Facebook
    • Twitter
    • LinkedIn

    LmiMath.EqualWithinTolerance Method (Double, Double)

    Returns true if the two numbers are equal within a tolerance of 1.0E-7.

    Namespace:  Autodesk.iLogic.Runtime
    Assembly:  Autodesk.iLogic.Runtime (in Autodesk.iLogic.Runtime.dll) Version: 30.0

    Syntax

    VB

    Public Shared Function EqualWithinTolerance ( 
    	a As Double,
    	b As Double
    ) As Boolean

    C#

    public static bool EqualWithinTolerance(
    	double a,
    	double b
    )

    Parameters

    a
    Type: System.Double
    First number.
    b
    Type: System.Double
    Second number.

    Return Value

    Type: Boolean

    See Also

    Reference

    LmiMath Class
    EqualWithinTolerance Overload
    Autodesk.iLogic.Runtime Namespace

    Was this information helpful?

    Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Please see the Autodesk Creative Commons FAQ for more information.

    • Privacy Statement
    • Legal Notices & Trademarks
    • Report Noncompliance
    • © 2025 Autodesk Inc. All rights reserved