MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > a) Common Functions > leScaleIntegerSigned Function
MPLAB® Harmony Graphics Suite
leScaleIntegerSigned Function
C
LIB_EXPORT int32_t leScaleIntegerSigned(
    int32_t num, 
    int32_t oldMax, 
    int32_t newMax
);
Parameters
Parameters 
Description 
num 
the number to consider 
oldMax 
the old range maximum 
newMax 
the new range maximum 
Returns

int32_t - the number as defined in the new number range

MPLAB® Harmony Graphics Suite