RosettaCodeData/Task/Formatted-numeric-output/Hexiscript/formatted-numeric-output.hexi

10 lines
121 B
Plaintext

fun format n length
let n tostr n
while len n < length
let n 0 + n
endwhile
println n
endfun
format 7.125 9