Jul-04-2022, 06:42 AM
I have developed an app, which does lengthy, but not very complicated calculations.
The main thing is that it produces end results, rounded numbers to 2 decimals.
Works well. (On my PC)
I made an executable with pyinstaller : pyinstaller --onefile --windowed xxx.py,
and gave it to somebody else.
With the identical dataset, his results are the same except for the rounding.
I have eg. : 616.51
His PC produces : 616.5199999999999
Am I naive in thinking that an executable should always produce the exact same result als the source?
How can this be ?
Paul
The main thing is that it produces end results, rounded numbers to 2 decimals.
Works well. (On my PC)
I made an executable with pyinstaller : pyinstaller --onefile --windowed xxx.py,
and gave it to somebody else.
With the identical dataset, his results are the same except for the rounding.
I have eg. : 616.51
His PC produces : 616.5199999999999
Am I naive in thinking that an executable should always produce the exact same result als the source?
How can this be ?

Paul
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'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.