topdown: Add units.parse builtin (#4676)
This function works on all base decimal and binary SI units of the set:
m, K/Ki, M/Mi, G/Gi, T/Ti, P/Pi, and E/Ei
Note: Unlike `units.parse_bytes`, this function is case sensitive.
Fixes open-policy-agent#1802.
Signed-off-by: Philip Conrad <philipaconrad@gmail.com> P
Philip Conrad committed
53cb5f40f954165babf07a7f24461f601351e73a
Parent: 9638ee2
Committed by GitHub <noreply@github.com>
on 5/11/2022, 2:54:51 PM