Skip to content

Small error in BigInteger(Int64) constructor example #10346

@clivetooth

Description

@clivetooth

Type of issue

Other (describe below)

Description

The code has:
long[] longs = { Int64.MinValue, -10534, -189, 0, 17, 113439,
Int64.MaxValue };

But the output has:
// The example displays the following output:
// -2147483648 = -2147483648: True
// -10534 = -10534: True
// -189 = -189: True
// 0 = 0: True
// 17 = 17: True
// 113439 = 113439: True
// 2147483647 = 2147483647: True

The values in the output are Int32.MinValue and int32.MaxValue, not Int64.MinValue and int64.MaxValue.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.numerics.biginteger.-ctor?view=netframework-4.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Numerics/BigInteger.xml

Document Version Independent Id

8c6625e5-760b-a2f4-0fa8-bad34c2d0aaa

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.Numericshelp wantedGood for community contributors to help [up-for-grabs]

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions