Hello, i just wanna know if hugo can do this … i don’t want to use javascript,
let’s say i have a number exactly like this “4.12144” and i wanted it to be exactly like that “4.1” so it can only display the first 2 number including the “.”
Hello, i just wanna know if hugo can do this … i don’t want to use javascript,
let’s say i have a number exactly like this “4.12144” and i wanted it to be exactly like that “4.1” so it can only display the first 2 number including the “.”
Try
{{ printf "%6.1f" 4.12144 }}
Ouah!! thank you so much!