mozilla/rust — Issue #1874: #fmt handles $.4f incorrectly when the number is round
Author: bzbarsky
Created: 2012-02-21 16:25:45+00:00
State: open

Testcase:

use std;
fn main() {
let i = 5.0;
std::io::println(#fmt("hello world %.4f!", i));
}

This should print "hello world 5.0000!" but prints "hello world 5!"