Skip to main content

Timeline for Multiplication of two uint256

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Apr 25 at 12:58 vote accept dNyrM
Apr 23 at 21:34 answer added dNyrM timeline score: 0
Apr 23 at 12:58 comment added dNyrM Yeah, and dividing before multiplying comes with precision loss also, something that I'm trying to avoid @SYEDASADKAZMI
Apr 23 at 12:40 comment added SYED ASAD KAZMI One way is to divide them separately by c and then multiply to get the result like result = (((a * 1e18) / c) * ((b * 1e18) / c)) / 1e18. But, you've mentioned that you're not looking to change the order of the operations, therefore it's not valid in that case.
Apr 23 at 11:14 history asked dNyrM CC BY-SA 4.0