Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Latest commit

 

History

History
105 lines (66 loc) · 2 KB

File metadata and controls

105 lines (66 loc) · 2 KB

InRangeBool

InRangeBool function is used to check that input value is in range.

Python

Location and name: Funcad.Funcad.in_range_bool()

Inputs:

  • float input value
  • float lower threshold
  • float upper threshold

Output:

bool is in range

Example:

from robocadSimPy import Funcad


funcad = Funcad.Funcad()
out = funcad.in_range_bool(5, 0, 12)  # True

Additional info:

---

C++

Location and name: "Funcad.h".Funcad.in_range_bool()

Inputs:

  • float input value
  • float lower threshold
  • float upper threshold

Output:

bool is in range

Example:

Additional info:

---

C#

Location and name: RobocadSim.Funcad.InRangeBool()

Inputs:

  • float input value
  • float lower threshold
  • float upper threshold

Output:

bool is in range

Example:

using System;
using RobocadSim;

namespace TestLib
{
    class Program
    {
        static void Main(string[] args)
        {
            Funcad funcad = new Funcad();
            bool output = funcad.InRangeBool(5, 0, 12); // true
        }
    }
}

Additional info:

---