Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Units of Measure

< >
Example from 1 languages: F#
// https://fsharpforfunandprofit.com/posts/units-of-measure/ [<Measure>] type N = kg m/sec^2 let force1 = 5.0<kg m/sec^2> let force2 = 5.0<N> force1 = force2 // true
Example from 1 languages: Nemerle
def m3 = 1 g; def m4 = Si.Mass(m1); WriteLine($"Mass in SI: $m4, in CGS: $m3"); def x1 = Si.Area(1 cm * 10 m); WriteLine($"Area of 1 cm * 10 m = $x1 m");
Example from 1 languages: Modelica
type SpecificHeatCapacity = Real ( final quantity="SpecificHeatCapacity", final unit="J/(kg.K)" );
Example from 1 languages: Frink
10 feet 12 feet 8 feet -> gallons
Example from 1 languages: Speedie
|| time = 1day - 10s || size = 10.2MB
Example from 1 languages: TI-89 series
54_kg * (_c^2)
*

Languages with Units of Measure include F#, Nemerle, Modelica, Frink, Speedie, TI-89 series

*

Languages without Units of Measure include Python, Bash, Elixir, Chapel, C3

*

View all concepts with or missing a hasUnitsOfMeasure measurement

*

Read more about Units of Measure on the web: 1.

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements