You might want to write a number as
- binary (base 2),
- octal (base 8)
- hexidecimal (base 16)
- or as a short id (base 36)
Are any advantages or disadvantages???
Generally, decimal is fine, however sometimes the number either has to be in a particular format or it makes more sense to read it as a power of 2, or in the last case, you want a unique id and you want to short and simple.
solved Why would I convert a Java Integer to String using another base(radix) 10?