Skip to content

Investigate the behavior difference in System.Runtime.Numeric when running on desktop #19874

Closed

Description

@tarekgh

System.Runtime.Numeric has some different behaviors when running on desktop than when running on netcore. the PR dotnet/corefx#15050 has the places needed to be investigated which are marked with [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]

Activity

  1. tarekgh commented on Jan 11, 2017

    @tarekgh
    MemberAuthor
  2. self-assigned this
    on Jan 11, 2017
  3. tarekgh commented on Jan 12, 2017

    @tarekgh
    MemberAuthor

    The following case is giving different results on desktop too

            public static void RunDoubleExplicitCastFromLargeBigIntegerTests()
            {
                DoubleExplicitCastFromLargeBigIntegerTests(0, 4, 32, 3);
            }
    System.Numerics.Tests.cast_fromTest.RunDoubleExplicitCastFromLargeBigIntegerTests [FAIL]
        Assert.Equal() Failure
        Expected: ∞
        Actual:   0
    
  4. tarekgh commented on Jan 12, 2017

    @tarekgh
    MemberAuthor

    one more case:

            public static void RunLargeValueLogTests()
            {
                LargeValueLogTests(0, 4, 64, 3);
            }
      System.Numerics.Tests.logTest.RunLargeValueLogTests [FAIL]
    
            Assert.True() Failure
            Expected: True
            Actual:   False
    
  5. transferred this issue fromdotnet/corefxon Jan 31, 2020
  6. added this to the Future milestone on Jan 31, 2020
  7. added
    untriaged
    on Feb 23, 2020
  8. removed
    untriaged
    on Jul 6, 2020
  9. added
    Cost:S
    on Jan 15, 2021
  10. tannergooding commented on Jul 9, 2025

    @tannergooding
    Member

    We have a number of explicit differences between the modern .NET and legacy .NET Framework implementations. These are intentional for performance, bug fixes, determinism, etc.

    Tests are appropriately authored where relevant; although most tests only run against modern .NET today.

  11. locked and limited conversation to collaborators on Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cost:Sarea-System.Numericshelp wantedtest-bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions