JavaScript:实现隔离数字的小数部分, 取这个数字并从底数中减去它,返回结果算法
/*
* function isolates the decimal part of a number.
* Take the number and subtract it from the floored number.
* Return the result.
*/
export const decimalIsolate = (number) => {
const answer = parseFloat