On 8/24/25 08:15, Colin Paice wrote:
...
1024/3 = 341: 1/3 = 341/1024
65536/3 = 21845 : 1/3 = 21845/65536
...
How close do you need it to be?
675 $ rxx "say 1024/341"
3.00293255
676 $ rxx "say 65536/ 21845"
3.00004578
I thought this amazing - multiply and divide without using multiply or
divide instructions.
...
But you must document your assumptions about tolerable inaccuracy.
679 $ rxx "say 3000000 * 341%1024"
999023
--
gil
