divide a number and get only quotient in js code example Example: quotient js var floatingPointPart = (18/7) % 1; var integerPart = Math.floor(18/7);