Asset should have as_decimal
Rationale: there is already an existing as_float
which allows one to get a number representing an asset.
So
>>> AssetHiveHF26(amount='1500', precision=3, nai='@@000000021').as_float()
1.5
But floats are inaccurate by their nature, so it would be better if there was an additional as_decimal
method (or as_float
should be replaced with such a as_decimal
)
Edited by Mateusz Żebrak