Skip to content

Float values in settings are too precise (especially for people who don't know IEEE854) #1398

@hugo-vrijswijk

Description

@hugo-vrijswijk

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

Any other software? No

Steps to reproduce

  1. Open settings
  2. Set acrylicOpacity to 0.7
  3. Close Terminal
  4. Open terminal again
  5. Observe acrylicOpacity setting now being set to 0.69999998807907104

Expected behavior

acrylicOpacity should remain on 0.7

Actual behavior

acrylicOpacity has a floating point error.

Metadata

Metadata

Assignees

Labels

Area-SettingsIssues related to settings and customizability, for console or terminalIssue-BugIt either shouldn't be doing this or needs an investigation.Product-TerminalThe new Windows Terminal.Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions