/**
 * @since Last modified: 2024-08-31 10:05:09
 * @function splitNum
 * @description Converts floating-point values to strings and displays integer and decimal parts separately.
 * @param  {string} value - A number.
 * @returns {boolean} Return string.
 * @see {@link https://codepen.io/axui/pen/VwJGMNg|demo @ codepen}
 * @example
 * ax.splitNum(12.36);
 * <!--return <span class="_splitnum"><s>12</s><u>.36</u></span>-->
 */
'use strict';
import prefix from "../global/prefix";
import isNull from "./isNull";
const splitNum = (value) => {
    let num = value.toString().split('.'), str = `<s>${num[0]}</s>`;
    !isNull(num[1]) && (str += `<u>.${num[1]}</u>`);
    return `<span class="${prefix}splitnum">${str}</span>`;
};
export default splitNum;
