utils: Add clarification to util.isFloat() jsdoc

This commit is contained in:
Sam Lanning 2017-05-11 14:37:18 -07:00
parent 21dc8b4af0
commit 3e06a244dd

View File

@ -392,6 +392,11 @@ util.isHex256 = function isHex256(hash) {
/**
* Test whether a string qualifies as a float.
*
* This is stricter than checking if the result of parseFloat() is NaN
* as, e.g. parseFloat successfully parses the string '1.2.3' as 1.2, and
* we also check that the value is a string.
*
* @param {String?} value
* @returns {Boolean}
*/