Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,830
    • Issues 4,830
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 447
    • Merge requests 447
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #14377

Closed
Open
Created Oct 21, 2017 by vanto@trac-vanto

some results not expected with the addition

Prelude> 1.1+2.2
3.3000000000000003
Prelude> 1.11+2.22
3.33
Prelude> 1.111+2.222
3.333
Prelude> 1.1111+2.2222
3.3333
Prelude> 1.11111+2.22222
3.33333
Prelude> 1.111111+2.222222
3.3333329999999997
Prelude> 1.1111111+2.2222222
3.3333333
Prelude> 1.11111111+2.22222222
3.33333333
Prelude> 1.111111111+2.222222222
3.333333333
Prelude> 1.1111111111+2.2222222222
3.3333333333
Prelude> 1.11111111111+2.22222222222
3.33333333333
Prelude> 1.111111111111+2.222222222222
3.333333333333
Prelude> 1.1111111111111+2.2222222222222
3.3333333333333
Prelude> 1.11111111111111+2.22222222222222
3.3333333333333304
Prelude> 1.111111111111111+2.222222222222222
3.333333333333333

Given the other additions, three results can be improved.

Trac metadata
Trac field Value
Version 8.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited Mar 10, 2019 by vanto
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking