code_junkie

Are units of measurement unique to F#?

Nov 11th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def m3 = 1 g;
  2. def m4 = Si.Mass(m1);
  3.  
  4. WriteLine($"Mass in SI: $m4, in CGS: $m3");
  5.  
  6. def x1 = Si.Area(1 cm * 10 m);
  7.  
  8. WriteLine($"Area of 1 cm * 10 m = $x1 m");
Add Comment
Please, Sign In to add comment