Skip to content

Commit b86847c

Browse files
Merge pull request #7307 from royreznik/fix-7228
Fixes #7228: Round °F temperature to one decimal place
2 parents 8ba5d03 + 030c573 commit b86847c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

netbox/project-static/dist/status.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

netbox/project-static/dist/status.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

netbox/project-static/src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export function createElement<
409409
* @returns Degrees in Fahrenheit.
410410
*/
411411
export function cToF(celsius: number): number {
412-
return celsius * (9 / 5) + 32;
412+
return Math.round((celsius * (9 / 5) + 32 + Number.EPSILON) * 10) / 10;
413413
}
414414

415415
/**

0 commit comments

Comments
 (0)