Task

Express a number in decimal as a fixed-length string with leading zeros.



For example, the number   7.125   could be expressed as   00007.125.




// version 1.0.5-2
 
fun main(args: Array<String>) {
    val num = 7.125
    println("%09.3f".format(num))
}