How the behavior of JavaScript math functions is undefined and important