@@Matthias Apsel
parseInt(Math.log10(Math.abs(x))) + 1
Wieso parseInt()
, wenn das Argument schon eine Zahl ist? Math.floor()
sollte es tun.
LLAP 🖖
--
“You might believe there are benefits for the developer, but first of all, you should put those behind the interest of the user.” —Stefan Tilkov
Selfcode:
“You might believe there are benefits for the developer, but first of all, you should put those behind the interest of the user.” —Stefan Tilkov
Selfcode:
sh:) fo:} ch:? rl:) br:> n4:& va:| de:> zu:} fl:{ ss:| ls:# js:|