Browse Source

relative mode modification

Neal Wilson 11 years ago
parent
commit
7a134715c7
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/typica.w

+ 4
- 4
src/typica.w View File

7030
 					arg(number.setNum(temperature.toCelsius().temperature(), 'f',
7030
 					arg(number.setNum(temperature.toCelsius().temperature(), 'f',
7031
 									2)));
7031
 									2)));
7032
 			} else {
7032
 			} else {
7033
-				display(QString("%1'C").arg(
7034
-					number.setNum(temperature.toFahrenheit().temperature() * (5/9), 'f', 2)));
7033
+				display(QString("%1'C").
7034
+					arg(number.setNum(temperature.temperature() * (5/9), 'f', 2)));
7035
 			}
7035
 			}
7036
 			break;
7036
 			break;
7037
 		case Units::Kelvin:
7037
 		case Units::Kelvin:
7040
 					arg(number.setNum(temperature.toKelvin().temperature(), 'f',
7040
 					arg(number.setNum(temperature.toKelvin().temperature(), 'f',
7041
 									2)));
7041
 									2)));
7042
 			} else {
7042
 			} else {
7043
-				display(QString("%1'C").arg(
7044
-					number.setNum(temperature.toFahrenheit().temperature() * (5/9), 'f', 2)));
7043
+				display(QString("%1").
7044
+					arg(number.setNum(temperature.temperature() * (5/9), 'f', 2)));
7045
 			}
7045
 			}
7046
 			break;
7046
 			break;
7047
 		case Units::Rankine:
7047
 		case Units::Rankine:

Loading…
Cancel
Save