Quick actions

cmd+k|ctrl+k

Navigation

Languages

Units of measurement

Snippet info

Language

Fsharp

Visibility

public

Author

rightfold

Created

2017-03-24T15:52:16Z

Updated

2017-03-24T15:52:20Z

[<Measure>]
type kg

[<Measure>]
type m

[<Measure>]
type s

[<Measure>]
type N = kg m/s^2

let mul (a : float<kg>) (b : float<m/s^2>) : float<N> =
  a * b

printfn "%f\n" (mul 5.0<kg> 2.0<m/s^2>)
INFO