Skip to content

Table formatting non-integer numbers in [pscustomobject] #18492

@237dmitry

Description

@237dmitry

Prerequisites

Steps to reproduce

Table formatting of [pscustomobject] leads to the output of non-integers ONLY in thousandths.

            
 [pscustomobject] @{
    'a' = 1.0     
    'b' = 1.12         
    'c' = 1.123  
    'd' = 1.1234
}
    a     b     c     d
    -     -     -     -
1,000 1,120 1,123 1,123

Expected behavior

Outputting data as is.

Actual behavior

Output of non-integers only in thousandths

Error details

No errors

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.0-rc.1
PSEdition                      Core
GitCommitId                    7.3.0-rc.1
OS                             Linux 6.0.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 03 Nov 2022 18:01:58 +0000
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or more

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions