When I return a Decimal value and print it:
return Decimal(number).quantize(Decimal(str(1 / 10 ** digits)), rounding=ROUND_HALF_UP)
it prints the output within this Decimal('')
Example:
[Decimal('1.20') Decimal('1.22') Decimal('1.42') Decimal('1.75') Decimal('2.77')]
But when I print the value in the function itself it prints only the value.
Example:
1.20
1.20
1.22
1.42
1.75
2.77
Once I exit the function how can I get the numeric value without the it being inside Decimal('')
Thank you.