GimpMath Mathematical definitions and macros. Mathematical definitions and macros. These macros should be used rather than the ones from math.h for enhanced portability. This macro rounds its argument @x to an integer value in floating point format. @x: the value to be rounded. This macro rounds its argument @x to the nearest integer. @x: the value to be rounded. This macro squares its argument @x. @x: the value to be squared. This macro limits it argument @a, an (0-511) int, to 255. @a: the value to be limited. This macro clamps its argument @a, an int32-range int, between 0 and 255 inclusive. @a: the value to be clamped. This macro converts its argument @angle from degree to radian. @angle: the angle to be converted. This macro converts its argument @angle from radian to degree. @angle: the angle to be converted.