Native Python support for units?
Native Python support for units?
Posted Jul 15, 2022 21:00 UTC (Fri) by jrwren (subscriber, #97799)In reply to: Native Python support for units? by niner
Parent article: Native Python support for units?
Only if it is implemented poorly. SI clearly defines K as Kelvins, period. k is kilo and ki is kibi (although maybe not SI)
https://www.nist.gov/pml/owm/metric-si-prefixes
Posted Jul 18, 2022 14:44 UTC (Mon)
by jwilk (subscriber, #63328)
[Link]
Posted Jul 19, 2022 20:54 UTC (Tue)
by p6steve (guest, #159775)
[Link]
say 29K.in('°C'); # -244.15°C
Sadly, Kibi (and other computing units are not yet implemented)
Native Python support for units?
Native Python support for units?
#viz. https://en.wikipedia.org/wiki/International_System_of_Units
say 29km.in('miles'); # 18.019765mile