2

The python doc on decimal about the clamp bit says:

A clamp value of 1 allows compatibility with the fixed-width decimal interchange formats specified in IEEE 754.

When clamp is 1, the exponent range is more limited. But what is the use case for that? Is there any example of this?

Saleh
  • 1,819
  • 1
  • 17
  • 44
  • Like the docs say, it's for compatibility with [IEEE 754 decimal interchange formats](https://en.wikipedia.org/wiki/IEEE_754#Interchange_formats), which work like `clamp=1` does due to being fixed-width. – user2357112 Oct 21 '22 at 23:00

0 Answers0