When my `Math.log`

value getting zero it is giving `-Infinity`

value. Why it is giving negative Infinity value? Why only giving -Infinity rather giving +Infinity. Why only 0 value is giving this result.

`console.log(Math.log(0))`

When my `Math.log`

value getting zero it is giving `-Infinity`

value. Why it is giving negative Infinity value? Why only giving -Infinity rather giving +Infinity. Why only 0 value is giving this result.

`console.log(Math.log(0))`

Because log 0 is undefined and so they’ve implemented it that way.Specs: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Infinity#Beispiele

Fundamentally, because that’s how it’s specified:

(my emphasis)But more to the point,

`log(x)`

as`x`

approaches`0`

decreases without bound. So -Infinity seems a reasonable choice for the spec to make.generic tadalafil canada – http://xtadalafilp.com/ discount tadalafil

free local dating sites

plenty of fish dating site of free dating