I think you've found the right solutions:

  • There are some functions that don't work with or make sense for units; you'll have to 'cast away' the units and just work with floats
  • Since units are a compile-time concept only (they are erased away at runtime, since they have no representation in IL), there's no way to 'ToString the units-of-measure', you'll just have to print strings like "ft" yourself.
By on 3/4/2009 12:56 PM ()

Thanks for your fast answer!

Isn't there a possibility like

variable.GetType()
variable::typeid

in C++? How does F# Interactive get the type information?

By on 3/4/2009 1:48 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper