Python Forum
numbers with decimals
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
numbers with decimals
#1
Hi,
I'm embarrassed, a member already answered this question, some time ago,
I can't find the reply any more. Blush .
I wrote a program for a friend to do some calculations, resulting numbers end with decimals.
I made an executable, and he used the program with success, although...
On close inspection, the decimals on his PC and on mine are slightly different. (same executable).
How come ?
A reply was given that I should use a special class of decimal numbers that does not have that problem.
Now I am about to write a new version, and I would like to implement that class, but I can't rememmber the name.
Anybody?
thx,
Paul
Edit : I seem to remember it's simply "the decimal module". See what we can find.
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
numbers with decimals - by DPaul - Nov-28-2023, 09:39 AM
RE: numbers with decimals - by DeaD_EyE - Nov-28-2023, 11:47 AM
RE: numbers with decimals - by DPaul - Nov-28-2023, 03:01 PM
RE: numbers with decimals - by DPaul - Nov-29-2023, 07:35 AM
RE: numbers with decimals - by DeaD_EyE - Dec-01-2023, 07:59 AM
RE: numbers with decimals - by Gribouillis - Dec-01-2023, 08:54 AM
RE: numbers with decimals - by DPaul - Dec-01-2023, 06:28 PM

Forum Jump:

User Panel Messages

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