Thursday 15 July 2010

node.js - Why is 0 less than Number.MIN_VALUE in JavaScript? -



node.js - Why is 0 less than Number.MIN_VALUE in JavaScript? -

using node.js, i'm evaluating expression:

0 < number.min_value

to surprise, returns true. why that? and: how can smallest number available comparing works expected?

number.min_value 5e-324, i.e. smallest positive number can represented within float precision, i.e. that's close can zero. defines best resolution floats give you.

now overall smallest value number.negative_infinity although that's not numeric in strict sense.

javascript node.js numbers double

No comments:

Post a Comment