Message Boards Message Boards

0
|
4358 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Avoid issue while calculating with units?

Posted 4 years ago

(in)

UnitConvert[Quantity[2.6, "Hours"], "Minutes"]

(out)

UnitConvert[QuantityUnits`Private`ToQuantity[QuantityUnits`Private`UnknownQuantity[2.6, "Hours"]], "Minutes"]    

I do not understand this output an I cannot find an answer anywhere in the documentation. Any help will be greatly appreciated.

POSTED BY: Fred Kuttner
3 Replies
Posted 4 years ago

And much thanks for your answer.

POSTED BY: Fred Kuttner
Posted 4 years ago

Hi Fred,

This works fine for me

UnitConvert[Quantity[2.6, "Hours"], "Minutes"]
(* Quantity[156., "Minutes"] *)

on "12.0.0 for Mac OS X x86 (64-bit) (April 7, 2019)". What version are you running?

POSTED BY: Rohit Namjoshi
Posted 4 years ago

That works for me now, too. All the calculations with units work for me now, but they didn't yesterday. Not sure why.

POSTED BY: Fred Kuttner
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