This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/scripts/functions/fonctions_annexes/isFloat_Function.js

13 lines
310 B
JavaScript

/**
* @function isFloat
* @description Vérifie si un nombre est un float (integer exclu).
* @param {number} value
* @returns {boolean}
* @example isFloat(76120.474) → true
*/
function isFloat(value) {
return !isNaN(value) && value.toString().includes('.');
}
/* Exports */
export { isFloat };