@@ -7,6 +7,10 @@ def celsius_to_fahrenheit(celsius: float, ndigits: int = 2) -> float:
7
7
Wikipedia reference: https://en.wikipedia.org/wiki/Celsius
8
8
Wikipedia reference: https://en.wikipedia.org/wiki/Fahrenheit
9
9
10
+ >>> celsius_to_fahrenheit(273.354, 3)
11
+ 524.037
12
+ >>> celsius_to_fahrenheit(273.354, 0)
13
+ 524.0
10
14
>>> celsius_to_fahrenheit(-40.0)
11
15
-40.0
12
16
>>> celsius_to_fahrenheit(-20.0)
@@ -31,6 +35,10 @@ def celsius_to_kelvin(celsius: float, ndigits: int = 2) -> float:
31
35
Wikipedia reference: https://en.wikipedia.org/wiki/Celsius
32
36
Wikipedia reference: https://en.wikipedia.org/wiki/Kelvin
33
37
38
+ >>> celsius_to_kelvin(273.354, 3)
39
+ 546.504
40
+ >>> celsius_to_kelvin(273.354, 0)
41
+ 547.0
34
42
>>> celsius_to_kelvin(0)
35
43
273.15
36
44
>>> celsius_to_kelvin(20.0)
@@ -51,6 +59,10 @@ def celsius_to_rankine(celsius: float, ndigits: int = 2) -> float:
51
59
Wikipedia reference: https://en.wikipedia.org/wiki/Celsius
52
60
Wikipedia reference: https://en.wikipedia.org/wiki/Rankine_scale
53
61
62
+ >>> celsius_to_rankine(273.354, 3)
63
+ 983.707
64
+ >>> celsius_to_rankine(273.354, 0)
65
+ 984.0
54
66
>>> celsius_to_rankine(0)
55
67
491.67
56
68
>>> celsius_to_rankine(20.0)
@@ -71,6 +83,10 @@ def fahrenheit_to_celsius(fahrenheit: float, ndigits: int = 2) -> float:
71
83
Wikipedia reference: https://en.wikipedia.org/wiki/Fahrenheit
72
84
Wikipedia reference: https://en.wikipedia.org/wiki/Celsius
73
85
86
+ >>> fahrenheit_to_celsius(273.354, 3)
87
+ 134.086
88
+ >>> fahrenheit_to_celsius(273.354, 0)
89
+ 134.0
74
90
>>> fahrenheit_to_celsius(0)
75
91
-17.78
76
92
>>> fahrenheit_to_celsius(20.0)
@@ -97,6 +113,10 @@ def fahrenheit_to_kelvin(fahrenheit: float, ndigits: int = 2) -> float:
97
113
Wikipedia reference: https://en.wikipedia.org/wiki/Fahrenheit
98
114
Wikipedia reference: https://en.wikipedia.org/wiki/Kelvin
99
115
116
+ >>> fahrenheit_to_kelvin(273.354, 3)
117
+ 407.236
118
+ >>> fahrenheit_to_kelvin(273.354, 0)
119
+ 407.0
100
120
>>> fahrenheit_to_kelvin(0)
101
121
255.37
102
122
>>> fahrenheit_to_kelvin(20.0)
@@ -123,6 +143,10 @@ def fahrenheit_to_rankine(fahrenheit: float, ndigits: int = 2) -> float:
123
143
Wikipedia reference: https://en.wikipedia.org/wiki/Fahrenheit
124
144
Wikipedia reference: https://en.wikipedia.org/wiki/Rankine_scale
125
145
146
+ >>> fahrenheit_to_rankine(273.354, 3)
147
+ 733.024
148
+ >>> fahrenheit_to_rankine(273.354, 0)
149
+ 733.0
126
150
>>> fahrenheit_to_rankine(0)
127
151
459.67
128
152
>>> fahrenheit_to_rankine(20.0)
@@ -149,6 +173,10 @@ def kelvin_to_celsius(kelvin: float, ndigits: int = 2) -> float:
149
173
Wikipedia reference: https://en.wikipedia.org/wiki/Kelvin
150
174
Wikipedia reference: https://en.wikipedia.org/wiki/Celsius
151
175
176
+ >>> kelvin_to_celsius(273.354, 3)
177
+ 0.204
178
+ >>> kelvin_to_celsius(273.354, 0)
179
+ 0.0
152
180
>>> kelvin_to_celsius(273.15)
153
181
0.0
154
182
>>> kelvin_to_celsius(300)
@@ -169,6 +197,10 @@ def kelvin_to_fahrenheit(kelvin: float, ndigits: int = 2) -> float:
169
197
Wikipedia reference: https://en.wikipedia.org/wiki/Kelvin
170
198
Wikipedia reference: https://en.wikipedia.org/wiki/Fahrenheit
171
199
200
+ >>> kelvin_to_fahrenheit(273.354, 3)
201
+ 32.367
202
+ >>> kelvin_to_fahrenheit(273.354, 0)
203
+ 32.0
172
204
>>> kelvin_to_fahrenheit(273.15)
173
205
32.0
174
206
>>> kelvin_to_fahrenheit(300)
@@ -189,6 +221,10 @@ def kelvin_to_rankine(kelvin: float, ndigits: int = 2) -> float:
189
221
Wikipedia reference: https://en.wikipedia.org/wiki/Kelvin
190
222
Wikipedia reference: https://en.wikipedia.org/wiki/Rankine_scale
191
223
224
+ >>> kelvin_to_rankine(273.354, 3)
225
+ 492.037
226
+ >>> kelvin_to_rankine(273.354, 0)
227
+ 492.0
192
228
>>> kelvin_to_rankine(0)
193
229
0.0
194
230
>>> kelvin_to_rankine(20.0)
@@ -209,6 +245,10 @@ def rankine_to_celsius(rankine: float, ndigits: int = 2) -> float:
209
245
Wikipedia reference: https://en.wikipedia.org/wiki/Rankine_scale
210
246
Wikipedia reference: https://en.wikipedia.org/wiki/Celsius
211
247
248
+ >>> rankine_to_celsius(273.354, 3)
249
+ -121.287
250
+ >>> rankine_to_celsius(273.354, 0)
251
+ -121.0
212
252
>>> rankine_to_celsius(273.15)
213
253
-121.4
214
254
>>> rankine_to_celsius(300)
0 commit comments