Contact: aviboots(AT)netvision.net.il
39,926 questions
51,859 answers
573 users
let n = 853271; console.log(parseInt(Math.log10(n))); console.log(parseInt(Math.pow(10, parseInt(Math.log10(n))))); n = n % parseInt(Math.pow(10, parseInt(Math.log10(n)))); console.log(n); /* run: 5 100000 53271 */