From 024e3a7633feec4e55da8b41b9f67d3155a0b991 Mon Sep 17 00:00:00 2001 From: K-J-Dod24 Date: Fri, 5 May 2023 14:30:21 +0100 Subject: language and position attributes io32/115 --- modern/src/common/util/formatter.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modern/src/common/util/formatter.js') diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js index 56c02547..7f08ddcb 100644 --- a/modern/src/common/util/formatter.js +++ b/modern/src/common/util/formatter.js @@ -17,6 +17,8 @@ export const formatNumber = (value, precision = 1) => Number(value.toFixed(preci export const formatPercentage = (value) => `${value}%`; +export const formatCelsius = (value) => `${value}°C`; + export const formatTime = (value, format, hours12) => { if (value) { const m = moment(value); -- cgit v1.2.3