I am writing an ocaml program and I can't figure out how to look at specific digits of an int
so say for example we have
let a = 405;;
I want to be able to look at the first digit, 4, or the second one, 0. How can I accomplish this? I was thinking of turning it into a string and looking at the chars, but I feel like there should be another way of doing it.