Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Precision with Decimal Type
#5
Some things to consider:

Documentation > 6.Modules > 6.1. More on modules
Quote:Note that in general the practice of importing * from a module or package is frowned upon, since it often causes poorly readable code. However, it is okay to use it to save typing in interactive sessions.

decimal — Decimal fixed point and floating point arithmetic

Quote:The significance of a new Decimal is determined solely by the number of digits input. Context precision and rounding only come into play during arithmetic operations.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Precision with Decimal Type - by charlesrkiss - Jan-16-2024, 06:03 PM
RE: Precision with Decimal Type - by rob101 - Jan-16-2024, 08:21 PM
RE: Precision with Decimal Type - by charlesrkiss - Jan-16-2024, 11:49 PM
RE: Precision with Decimal Type - by charlesrkiss - Jan-17-2024, 03:44 AM
RE: Precision with Decimal Type - by perfringo - Jan-17-2024, 07:57 AM
RE: Precision with Decimal Type - by charlesrkiss - Jan-17-2024, 10:45 PM
RE: Precision with Decimal Type - by casevh - Jan-18-2024, 05:55 AM
RE: Precision with Decimal Type - by charlesrkiss - Jan-18-2024, 02:37 AM
RE: Precision with Decimal Type - by charlesrkiss - Jan-18-2024, 05:21 PM
RE: Precision with Decimal Type - by charlesrkiss - Jan-18-2024, 06:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Gmpy2 Newbie Working on Precision charlesrkiss 6 835 Jun-14-2024, 09:53 AM
Last Post: sunflower36002
  Precision conversion garynewport 2 1,081 Oct-19-2022, 10:47 AM
Last Post: garynewport
Photo Filtering data and precision during calculations Scientifix 0 1,871 Mar-30-2021, 01:00 PM
Last Post: Scientifix
  High-Precision Board Voltage Reading from Python into PD Liam484 1 2,195 Mar-29-2021, 02:57 PM
Last Post: Marbelous
  Type hinting - return type based on parameter micseydel 2 2,618 Jan-14-2020, 01:20 AM
Last Post: micseydel
  Decimal (Global precision setting) Valentina 3 3,762 Aug-23-2019, 11:53 AM
Last Post: Valentina
  python decimal scale precision massimo_m 5 5,682 Aug-22-2019, 11:47 AM
Last Post: perfringo
  testing for Decimal w/o importing decimal every time Skaperen 7 4,732 May-06-2019, 10:23 PM
Last Post: Skaperen
  Using Decimal Type instead of Float Bytales 1 3,019 Mar-02-2019, 06:28 PM
Last Post: Bytales
  Trouble with decimal precision Cassie 4 3,252 Feb-14-2019, 08:23 PM
Last Post: Cassie

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020