title: Dividing two integers doesn't print as a decimal number in Rust
body: <p>I'm learning Rust, but when I print a decimal number, only the integer part is printed, not the decimal part:</p>
  
  <pre><code>fn main(){
      println!("{:.3}", 22/7);
  }
  // This only show 3
  </code></pre>
  
  <p>but when I print the decimal number explicitly, it works correctly:</p>
  
  <pre><code>fn main(){
      println!("{:.3}", 0.25648);
  }
  // this print 0.256
  </code></pre>