Skip to content

⚙️ OPT: Increase accuracy of Complex functions  #27

Open
@0xpanicError

Description

@0xpanicError

⚙️ [OPTIMIZATION]

Description:
Some tests in Complex.t.sol have low accuracy (upto none or one decimal place). Improve the accuracy to at least 3 decimal places (for now, ideally should be around 7-8 decimal places).

Objective:
Optimise library and rewrite the following tests such that they have 3 decimal places of accuracy.

function testDivZ() public {}         // dont divide output by scale
function testCalcR() public {}        // dont divide output by scale
function testToPolar() public {}      // dont divide output by scale
function testPowZ() public {}         // have 3 decimals of accuracy instead of one

Source:
./test/Complex.t.sol

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions