Open Iain-S opened 7 months ago
For rctab sub summary, and possibly other commands, we output the raw data as returned by the server. This means that financial figures are shown to many decimal places:
rctab sub summary
rctab sub summary --subscription-id 1234z-1234a-1234b-1234c [ { ... "total_cost": 78.18015651709896 } ]
However, it would be nice to either:
a. Show figures to to two decimal places by default, or b. Show some shell trick to accomplish the same thing.
a. Can be achieved by placing item["total_cost"] = round(item["total_cost"], 2) After item.pop("role_assignments")
item["total_cost"] = round(item["total_cost"], 2)
item.pop("role_assignments")
For
rctab sub summary
, and possibly other commands, we output the raw data as returned by the server. This means that financial figures are shown to many decimal places:However, it would be nice to either:
a. Show figures to to two decimal places by default, or b. Show some shell trick to accomplish the same thing.