OSSIA
Open Scenario System for Interactive Application
ossia::max_binding::equals Struct Reference

Detailed Description

like == but can compare floating-point numbers while tolerating the floating-point (im)precision.

Static Public Member Functions

static void free (equals *x)
 
static void assist (equals *x, void *b, long m, long a, char *s)
 
static void in_float (equals *x, double f)
 

Public Attributes

t_object x_ob
 header
 
void * x_outlet
 float/list for sampled values
 
void * x_inlet
 for setting the operand
 
double x_operand
 the number against which to test input
 
long x_tolerance
 
long x_single_precision
 operate on 32-bit floats rather than 64-bit doubles
 

Member Data Documentation

◆ x_tolerance

long ossia::max_binding::equals::x_tolerance

number of floating-point representations around the specified operand to consider as "equal"