2 ms·
No it wouldn't, because -30 is supposed to work the same as 30, so you want to convert the sign to positive first. Personally, I'd use something like: if (
by BerislavLopac 13y ago
No it wouldn't, because -30 is supposed to work the same as 30, so you want to convert the sign to positive first. Personally, I'd use something like:
if (!N || Math.abs(N) > 50 ) {
N = 50
};