[7, 27.5, -7.2345].forEach(myNumber => { let formattedNumber = myNumber.toLocaleString('en-US', { minimumIntegerDigits: 2, useGrouping: false }) console.log( 'Input: ' + myNumber + ' ' + 'Output: ' + formattedNumber ) })