Template talk:Ft in to m
From Wikipedia, the free encyclopedia
[edit] Displaying trailing zeroes when specified by precision
Would it be possible for this template to display trailing zeroes when specified by precision? For example:
Code | Produces | Should produce |
---|---|---|
{{ft in to m|311|9|precision=1}} | 311 feet 9 inches (95 m) | 311 feet 9 inches (95.0 m) |
If I specify one decimal place, I'd like it to be displayed even if it's a zero, because I want to make it clear that this is precise to the tenth of a meter. TomTheHand (talk) 18:48, 12 December 2007 (UTC)
- Should be trivial (but I might be wrong :)). I'll take a look now.—Ëzhiki (Igels Hérissonovich Ïzhakoff-Amursky) • (yo?); 18:52, 12 December 2007 (UTC)
- OK, thanks to Jimp and his wonderful {{rnd}} template, this indeed turned out to be a straightforward upgrade. Here we go:
- {{ft in to m|311|9|precision=1}}→311 feet 9 inches (95.0 m)
- —Ëzhiki (Igels Hérissonovich Ïzhakoff-Amursky) • (yo?); 19:03, 12 December 2007 (UTC)
- Thanks! TomTheHand (talk) 23:49, 12 December 2007 (UTC)