InRangeBool
InRangeBool function is used to check that input value is in range.
Location and name: Funcad.Funcad.in_range_bool()
Inputs:
float input value
float lower threshold
float upper threshold
Output:
bool is in range
Example:
1 2 3 4 5 | from robocadSimPy import Funcad
funcad = Funcad.Funcad()
out = funcad.in_range_bool(5, 0, 12) # True
|
Additional info:
---
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:
1 2 3 4 5 6 7 8 | #include "Funcad.h"
#include <iostream>
int main()
{
Funcad funcad;
bool out = funcad.in_range_bool(5, 0, 12); // true
}
|
Additional info:
---
Location and name: RobocadSim.Funcad.InRangeBool()
Inputs:
float input value
float lower threshold
float upper threshold
Output:
bool is in range
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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:
---