I have a 50 digits number.
I'd like to write a function that will decompose this number to 50, 25 or 5 digits different numbers (oany number k
for which 50/k == integer
).
my attempts:
x <- 37107287533902102798797998220837590246510135740250
print(log10(x))
[1] 49.56946
this isn't helping my with discompose the number, as
length(x) == length(log10(x)) == 1
is there a function like this? or any way to discompose a vector to its digits/ characters?
Thank you.