MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > a) Common Functions > leClampf Function
MPLAB® Harmony Graphics Suite
leClampf Function
C
LIB_EXPORT float leClampf(
    float min, 
    float max, 
    float f
);
Parameters
Parameters 
Description 
min 
the minimum value 
max 
the maximum value 
the float to clamp 
Returns

float - the clamped value

MPLAB® Harmony Graphics Suite