Skip to content

Commit

Permalink
Update docs/Secure-Coding-Guide-for-Python/CWE-682/CWE-1339/README.md
Browse files Browse the repository at this point in the history
Co-authored-by: myteron <[email protected]>
Signed-off-by: BartyBoi1128 <[email protected]>
  • Loading branch information
BartyBoi1128 and myteron authored Dec 11, 2024
1 parent b6b43c2 commit c5145ed
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ print(
)
```

Because the value of `ITEM_COST` (0.33) cannot be precisely represented in Python due to its nature as a terminating decimal in base 10, the resulting output was as follows:
The unprecise `base 10` representation during the multiplication of `5` with `0.33` results in an `account balance` of `$1.34999999999999993` in the `noncompliant01.py` code.

**Example noncompliant01.py output:**
Expand Down

0 comments on commit c5145ed

Please sign in to comment.