Click here to Skip to main content
15,892,298 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: PRECISION and ACCURACY Pin
73Zeppelin22-Oct-08 2:58
73Zeppelin22-Oct-08 2:58 
GeneralRe: PRECISION and ACCURACY Pin
εїзεїзεїз22-Oct-08 3:10
εїзεїзεїз22-Oct-08 3:10 
GeneralRe: PRECISION and ACCURACY Pin
Andrew Rissing22-Oct-08 6:53
Andrew Rissing22-Oct-08 6:53 
GeneralRe: PRECISION and ACCURACY Pin
73Zeppelin22-Oct-08 7:02
73Zeppelin22-Oct-08 7:02 
GeneralRe: PRECISION and ACCURACY Pin
Paul Conrad22-Oct-08 8:05
professionalPaul Conrad22-Oct-08 8:05 
GeneralRe: PRECISION and ACCURACY Pin
PIEBALDconsult13-Nov-08 16:14
mvePIEBALDconsult13-Nov-08 16:14 
AnswerRe: PRECISION and ACCURACY Pin
Roger Wright23-Oct-08 11:28
professionalRoger Wright23-Oct-08 11:28 
GeneralRe: PRECISION and ACCURACY Pin
Luc Pattyn26-Oct-08 9:07
sitebuilderLuc Pattyn26-Oct-08 9:07 
Hi,

in order to preserve accuracy, you should keep track of the total amount
(104 in your example) and the total quantity (11). The Avg Selling Price
is of secondary importance. You should not perform a division (which
looses accuracy, especially if you apply rounding to the quotient) and
later try to undo it by multiplying again, just keep track of amount and count.
Amount has no precision problem, since it has a fixed resolution (e.g. 1 cent),
and count is an integer.

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


GeneralFactoradics Pin
Bassam Abdul-Baki19-Oct-08 5:35
professionalBassam Abdul-Baki19-Oct-08 5:35 
QuestionSQL select based on Boolean values Pin
ormonds17-Oct-08 11:03
ormonds17-Oct-08 11:03 
AnswerRe: SQL select based on Boolean values Pin
Caio Kinzel Filho17-Oct-08 11:21
Caio Kinzel Filho17-Oct-08 11:21 
AnswerRe: SQL select based on Boolean values Pin
elektrowolf19-Oct-08 23:36
elektrowolf19-Oct-08 23:36 
QuestionHow to find 3rd coordinate of a triangle given 2 others Pin
Chesnokov Yuriy16-Oct-08 1:52
professionalChesnokov Yuriy16-Oct-08 1:52 
AnswerRepost. Pin
CPallini16-Oct-08 2:32
mveCPallini16-Oct-08 2:32 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
ormonds17-Oct-08 11:34
ormonds17-Oct-08 11:34 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
Chesnokov Yuriy17-Oct-08 20:52
professionalChesnokov Yuriy17-Oct-08 20:52 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
ormonds18-Oct-08 11:48
ormonds18-Oct-08 11:48 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
Arash Partow17-Oct-08 18:05
Arash Partow17-Oct-08 18:05 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
Chesnokov Yuriy17-Oct-08 20:55
professionalChesnokov Yuriy17-Oct-08 20:55 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Arash Partow18-Oct-08 4:31
Arash Partow18-Oct-08 4:31 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Member 419459318-Oct-08 7:11
Member 419459318-Oct-08 7:11 
AnswerRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987618-Oct-08 17:32
cp987618-Oct-08 17:32 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987618-Oct-08 23:38
cp987618-Oct-08 23:38 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Arash Partow19-Oct-08 6:32
Arash Partow19-Oct-08 6:32 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987619-Oct-08 11:42
cp987619-Oct-08 11:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.