I'm currently working my way through the Euler project, and currently I need to split a 1000 digit number into an array.
I've tried this :
var number = big number here;
var digits = number.toString().split('');
It works fine for small numbers, but as soon as the input gets big enough the array will be on scientific notation, e.g. :
[ '1', '2', '3', '1', '2', '4', 'e', '+', '2', '2' ]
Is there a way around this?
Thanks in advance!
EDIT: Needed for problem 8 on Euler Project (https://projecteuler.net/problem=8)