#2421 Units

Aaron Wed 10 Jun 2015

Is there a way to test for unit compatibility without attempting a conversion and catching an exception?

SlimerDude Wed 10 Jun 2015

The only thing I can see in the Unit API is fromStr("XXX", false) but that would require you to manually create the string. It's probably not what you want.

brian Wed 10 Jun 2015

There wasn't really a good way to do that. I added a new method called dim that returns a string of the dimension definition. changeset

Login or Signup to reply.