Merge pull request #7307 from royreznik/fix-7228

Fixes #7228: Round °F temperature to one decimal place
This commit is contained in:
Jeremy Stretch 2021-09-20 10:21:43 -04:00 committed by GitHub
commit b86847c57e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -409,7 +409,7 @@ export function createElement<
* @returns Degrees in Fahrenheit.
*/
export function cToF(celsius: number): number {
return celsius * (9 / 5) + 32;
return Math.round((celsius * (9 / 5) + 32 + Number.EPSILON) * 10) / 10;
}
/**