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