Cyfrin / Updraft

https://updraft.cyfrin.io
GNU Affero General Public License v3.0
55 stars 39 forks source link

Fixed math error and improved language #212

Closed geraldwenzel closed 1 month ago

geraldwenzel commented 1 month ago

Swapped precision for accuracy because within the context of numerical calculation accuracy refers to how close the calculated answer is to the correct value, while precision refers to the number of significant figures used in the result.

This statement has a high level of precision but low accuracy: $$pi = 5.464584634564$$

This statement has lower precision but higher accuracy: $$pi = 3.14$$

The purpose of multiplying before dividing is to calculate a result with higher accuracy.


ethPrice * ethAmount results in 2000e18 is false because: $$1e18 * 2000e18 = 2000e36$$

EngrPips commented 1 month ago

Hello @geraldwenzel, Thanks for this contribution. It will be addressed appropriately as soon as possible.