Skip to content

Float sum precision regression on 7.0.0-preview1 #9779

@vors

Description

@vors

Steps to reproduce

@(1.1) * 10 | measure -Sum  

Expected behavior

This is 6.2.0 behavior

Count             : 10
Average           : 
Sum               : 11
Maximum           : 
Minimum           : 
StandardDeviation : 
Property          : 

Actual behavior

This is 7.0.0-preview.1

Count             : 10
Average           : 
Sum               : 10.999999999999998
Maximum           : 
Minimum           : 
StandardDeviation : 
Property          : 

Environment data

Name                           Value
----                           -----
PSVersion                      7.0.0-preview.1
PSEdition                      Core
GitCommitId                    7.0.0-preview.1
OS                             Darwin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

Labels

Committee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions