You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use bigint and add or multiply a floating point number, the result is wrong.
I discussed it with the PowerShell team but they don't want to fix it. PowerShell/PowerShell#21341
[double]$r = [bigint]5 * [double]1.5
Write-Host "bigint: $r"
The result is "bigint: 5"
[double]$r = [bigint]5 + [double]1.5
Write-Host "bigint: $r"
The result is "bigint: 6"
What is the latest version of PSScriptAnalyzer at the point of writing
1.22.0
The text was updated successfully, but these errors were encountered:
Summary of the new feature
When you use bigint and add or multiply a floating point number, the result is wrong.
I discussed it with the PowerShell team but they don't want to fix it.
PowerShell/PowerShell#21341
[double]$r = [bigint]5 * [double]1.5
Write-Host "bigint: $r"
The result is "bigint: 5"
[double]$r = [bigint]5 + [double]1.5
Write-Host "bigint: $r"
The result is "bigint: 6"
What is the latest version of PSScriptAnalyzer at the point of writing
1.22.0
The text was updated successfully, but these errors were encountered: