RosettaCodeData/Task/Formatted-numeric-output/V-(Vlang)/formatted-numeric-output.v
2023-07-01 13:44:08 -04:00

6 lines
163 B
V

fn main() {
// refer to string interpolation and format place holding in documentation
// pad with zeros towards the left
num := 7.125
println("${num:09f}")
}