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