Message Boards Message Boards

0
|
10775 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Why doesn't Quantity [ ] accept a Dynamic expression as a second argument?

Posted 9 years ago
POSTED BY: Avery Kramer
2 Replies
Posted 9 years ago

Thank you for the quick post Kurt - that totally did the trick. I'm still learning my way around Dynamic so this helps a lot. Thanks also for the capitalization tip with Quantity.

POSTED BY: Avery Kramer

Units such as "feet" need to be capitalized so Mathematica will recognize that they are actually Units. Also, if you want the Quantity command to update dynamically then you need wrap Dynamic around it. Try this for the last line:

Dynamic[Quantity[b,lengthUnit]]

Here is more information about Quantity[] and Units .

Hope that works for you.

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

Group Abstract Group Abstract