3 ms·
i don't see the problem with what you wrote. also, you could use expr if you don't like fiddling with parentheses when dealing with numeric values.
by znpy 4y ago
i don't see the problem with what you wrote.
also, you could use expr if you don't like fiddling with parentheses when dealing with numeric values.
- chasil 4y agoA fork() will be imposed with expr; using the shell's native math is faster. In any case, I have never seen "best practices" for (numeric) type coercion and confirmation. Everybody seems to come up with something on their own.