Rev 13 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13 | Rev 14 | ||
---|---|---|---|
Line 223... | Line 223... | ||
223 | newValue = new Double(value + 273.15); |
223 | newValue = new Double(value + 273.15); |
224 | 224 | ||
225 | if (newValue < 0.0) |
225 | if (newValue < 0.0) |
226 | {
|
226 | {
|
227 | this.textOffScale.setVisibility(View.VISIBLE); |
227 | this.textOffScale.setVisibility(View.VISIBLE); |
228 | return "*" + newValue.toString(); |
228 | return "*" + newValue.toString(); //$NON-NLS-1$ |
229 | }
|
229 | }
|
230 | break; |
230 | break; |
231 | }
|
231 | }
|
232 | break; |
232 | break; |
233 | 233 | ||
Line 242... | Line 242... | ||
242 | newValue = new Double((value + 459.67) * 5.0 / 9); |
242 | newValue = new Double((value + 459.67) * 5.0 / 9); |
243 | 243 | ||
244 | if (newValue < 0.0) |
244 | if (newValue < 0.0) |
245 | {
|
245 | {
|
246 | this.textOffScale.setVisibility(View.VISIBLE); |
246 | this.textOffScale.setVisibility(View.VISIBLE); |
247 | return "*" + newValue.toString(); |
247 | return "*" + newValue.toString(); //$NON-NLS-1$ |
248 | }
|
248 | }
|
249 | break; |
249 | break; |
250 | }
|
250 | }
|
251 | break; |
251 | break; |
252 | 252 | ||
Line 263... | Line 263... | ||
263 | }
|
263 | }
|
264 | 264 | ||
265 | if (value < 0.0) |
265 | if (value < 0.0) |
266 | {
|
266 | {
|
267 | this.textOffScale.setVisibility(View.VISIBLE); |
267 | this.textOffScale.setVisibility(View.VISIBLE); |
268 | return "*" + newValue.toString(); |
268 | return "*" + newValue.toString(); //$NON-NLS-1$ |
269 | }
|
269 | }
|
270 | break; |
270 | break; |
271 | }
|
271 | }
|
272 | 272 | ||
273 | return newValue.toString(); |
273 | return newValue.toString(); |