 1. Стоки

# floatmin

Синтаксис
```									```stock Float:floatmin(Float:ValueA, Float:ValueB)
return oper+1.0;

stock Float:operator--(Float:oper)
return oper-1.0;

stock Float:operator-(Float:oper)
return oper^Float:cellmin; /* IEEE values are sign/magnitude */

stock Float:operator*(Float:oper1, oper2)
return floatmul(oper1, float(oper2)); /* "*" is commutative */

stock Float:operator/(Float:oper1, oper2)
return floatdiv(oper1, float(oper2));

stock Float:operator/(oper1, Float:oper2)
return floatdiv(float(oper1), oper2);

stock Float:operator+(Float:oper1, oper2)
return floatadd(oper1, float(oper2)); /* "+" is commutative */

stock Float:operator-(Float:oper1, oper2)
return floatsub(oper1, float(oper2));

stock Float:operator-(oper1, Float:oper2)
return floatsub(float(oper1), oper2);

stock bool:operator==(Float:oper1, Float:oper2)
return floatcmp(oper1, oper2) == 0;

stock bool:operator==(Float:oper1, oper2)
return floatcmp(oper1, float(oper2)) == 0; /* "==" is commutative */

stock bool:operator!=(Float:oper1, Float:oper2)
return floatcmp(oper1, oper2) != 0;

stock bool:operator!=(Float:oper1, oper2)
return floatcmp(oper1, float(oper2)) != 0; /* "==" is commutative */

stock bool:operator>(Float:oper1, Float:oper2)
return floatcmp(oper1, oper2) > 0;

stock bool:operator>(Float:oper1, oper2)
return floatcmp(oper1, float(oper2)) > 0;

stock bool:operator>(oper1, Float:oper2)
return floatcmp(float(oper1), oper2) > 0;

stock bool:operator>=(Float:oper1, Float:oper2)
return floatcmp(oper1, oper2) >= 0;

stock bool:operator>=(Float:oper1, oper2)
return floatcmp(oper1, float(oper2)) >= 0;

stock bool:operator>=(oper1, Float:oper2)
return floatcmp(float(oper1), oper2) >= 0;

stock bool:operator<(Float:oper1, Float:oper2)
return floatcmp(oper1, oper2) < 0;

stock bool:operator<(Float:oper1, oper2)
return floatcmp(oper1, float(oper2)) < 0;

stock bool:operator<(oper1, Float:oper2)
return floatcmp(float(oper1), oper2) < 0;

stock bool:operator<=(Float:oper1, Float:oper2)
return floatcmp(oper1, oper2) <= 0;

stock bool:operator<=(Float:oper1, oper2)
return floatcmp(oper1, float(oper2)) <= 0;

stock bool:operator<=(oper1, Float:oper2)
return floatcmp(float(oper1), oper2) <= 0;

stock bool:operator!(Float:oper)
return (_:oper & ((-1)/2)) == 0;      /* -1 = all bits to 1; /2 = remove most significant bit (sign)
works on both 32bit and 64bit systems; no constant required */
/* forbidden operations */
forward operator%(Float:oper1, oper2);
forward operator%(oper1, Float:oper2);

/**
* Returns whichever value is the smaller one
*
* @param ValueA        The first value
* @param ValueB        The second value
*
* @return              ValueA if it is smaller than ValueB, and vice versa
*/
{
if (ValueA<=ValueB)
{
return ValueA;
}

return ValueB;
}```
```
Переменная Описание
ValueA
`The first value`
ValueB
`The second value`

Описание
Returns whichever value is the smaller one

Возвращает
ValueA if it is smaller than ValueB, and vice versa