how to cut off training decimal point in javascript code example Example: how to cut off decimals in javascript string.split(".")[0];