I have CountryData
coming in via e.g.
Entity["Country", "Australia"][
EntityProperty["Country", "GDP",
{"CurrencyUnit" -> "Constant2000USDollar",
"TimeSeriesOperator" -> "AnnualGrowthRate"}
]
]
Which returns
-0.00383656% per year (* unit: percent per year *)
My desired output is -0.0000383656
(i.e. as purely a decimal number).
I am surprised by how hard it has been to find an answer. Despite this question being very simple, I can't find a way with Quantity
, NumberForm
, etc.
QuantityMagnitude[r]/100
wherer
is your result you obtained from that long command. !Mathematica graphics-0.0000383656
$\endgroup$yourresult[[1]]
$\endgroup$FullForm
you can see the structure of the returnvalue: FullForm[r] gives you Quantity[-0.0038365585665900404`,Times["Percent",Power["Years",-1]]] $\endgroup$FullForm
,TreeForm
andExpressionTree
might lead to expressions that are too lengthy at times in which case you can considerInputForm
after getting familiar with outputs ofFullForm
$\endgroup$