Int List to int List in base 10000

Hello Guys can someone help me with this

[12;3;1200] -> [0012;0003;1200]

I think the idea is clear of what i am trying to make here … converting an int list to another one but in base 10000, Thank you!

Well, it’s not clear to me. The int values 12 and 0012 are the same:

# 12 = 0012;;
- : bool = true

So in the second example the input and output lists are equal. I can’t infer a meaningful transformation from your examples.

An OCaml int is just bytes. If you want to print it in base 10000 then what you’re really asking is “how do I print this number in base 10000” ?