1
2
3
4
function figure(x){
  y = size(string(int(x)))
  [y, pow(10,y-1)]
}