Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.1K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Avoid trouble using: "UnitConvert & CompatibleUnitQ"?

Posted 8 years ago
POSTED BY: ssbm675
2 Replies

This works for me. Try quitting your Kernel -- you must have something defined that is interfering.

In[184]:= UnitConvert[Quantity[6.2, "NauticalMiles"], "Kilometers"]

Out[184]= Quantity[11.4824, "Kilometers"]

In your second example, you can't type "8.2 lb" -- you must use Quantity[]. MMA interprets 8.2 lb as "the number 8.2 multiplied by the variable lb" -- it is not a unit.

Regards

POSTED BY: Neil Singer
Posted 8 years ago

By the way I am using Mathematica 11.2 Thanks!

POSTED BY: ssbm675
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard