Author: Bill Woodger
Subject: Re: Reply to: DFSORT MUL FIELDS
Posted: Wed Mar 08, 2017 5:50 am (GMT 5.5)
No, it doesn't show that. It will choke, badly, on 5.70.
That was the whole point of the question.
If you want to scale one of the inputs but refuse to scale the output, for sure, you'll get the answer wrong.
SORT won't, because it won't scale either the source or the result. The scaling is up to the coder. SORT does the multiplication how it is documented, and it is up to the coder to do anything else they need.
Subject: Re: Reply to: DFSORT MUL FIELDS
Posted: Wed Mar 08, 2017 5:50 am (GMT 5.5)
sergeyken wrote: |
When trying to use the MUL operation of SORT to do the same, it shows (5.70 * 1024) = 583680 |
No, it doesn't show that. It will choke, badly, on 5.70.
That was the whole point of the question.
If you want to scale one of the inputs but refuse to scale the output, for sure, you'll get the answer wrong.
SORT won't, because it won't scale either the source or the result. The scaling is up to the coder. SORT does the multiplication how it is documented, and it is up to the coder to do anything else they need.