Perform Arithmetic Operations on Decimals with JavaScript In JavaScript, you can perform calculations with decimal numbers, just like whole numbers. var quotient = 4.4 / 2.0; // equals 2.2