title: Limiting decimal places in print output, in Dart
body: <p>
  Sorry, noob question
  I'm searching for how to limit the amount of decimal points printed.
  I found this:</p>
  
  <pre class="lang-dart prettyprint-override"><code>print(price.toStringAsFixed(2));    // which worked great in another script
  </code></pre>
  
  <p>but how do I limit to 1 decimal point in the script below? I'm getting 14 decimal places :)</p>
  
  <pre class="lang-dart prettyprint-override"><code>String inTemp = stdin.readLineSync();
  int temp = int.parse(inTemp);
  
  switch (selection) {
    case 'A':
      print('$temp degrees Celcius is ${temp * 1.8 + 32} degrees Fahrenheit');
  </code></pre>
  
  <p>*I'm sure it's something obvious but I can't figure it out.</p>
  
  <p>Cheers for any help.</p>
  
  <h1>** Edit: So I can do it by adding new variables like below, but I'd still like to know how/if it can be done in the original print statement.</h1>
  
  <pre class="lang-dart prettyprint-override"><code>String inTemp = stdin.readLineSync();
    int temp = int.parse(inTemp);
    num temp1 = (temp * 1.8 + 32);
    num temp2 = ((temp - 32) / 1.8);
  
    switch (selection) {
      case 'A':
        print('$temp degrees Celcius is ${temp1.toStringAsFixed(1)} degrees Fahrenheit'); 
  </code></pre>