How it works...

The get_precision() function looks up the name in the Decimal Accuracy's Usage field and returns a tuple with 16-digit precision and the number of decimals that were defined in the configuration.

Using this function in the field definition, instead of having it hardcoded, allows the end user to configure it according to their needs.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset