Skip to content

Commit 41982bb

Browse files
Update test/src/lib/implementation/LibDecimalFloatImplementation.pow10.t.sol
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 2083180 commit 41982bb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/src/lib/implementation/LibDecimalFloatImplementation.pow10.t.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ contract LibDecimalFloatImplementationPow10Test is LogTest {
6363
function testInterpolatedLookupsPower() external {
6464
// 10^1.55555 = 35.9376769153
6565
checkPow10(1.55555e37, -37, 35.935e75, -75);
66-
// calculated on wolfram
67-
// 10^1234.56789 = 3.69734519948141829344363446069899674413404079870780463377448004811497051583459624644095897334743494067266231680935688534678044962972813724... × 10^1234
66+
// Source: WolframAlpha (10^1234.56789). Full-precision mantissa below is reference only.
67+
// 10^1234.56789 ≈ 3.69734519948141829344363446069899674413404079870780463377448004811497051583459624644095897334743494067266231680935688534678044962972813724… × 10^1234
68+
// Test expectation uses a truncated mantissa (3.6979e76) consistent with library rounding.
6869
checkPow10(123456789, -5, 3.6979e76, 1158);
6970
// ~= 10 (fuzzing found this edge case).
7071
checkPow10(

0 commit comments

Comments
 (0)