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

Open
opened 2026-01-30 22:40:26 +00:00 by claunia · 0 comments
Owner

Originally created by @hugo-vrijswijk on GitHub (Jun 22, 2019).

Originally assigned to: @zadjii-msft on GitHub.

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.

Originally created by @hugo-vrijswijk on GitHub (Jun 22, 2019). Originally assigned to: @zadjii-msft on GitHub. # Environment ```none 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.
claunia added the Area-SettingsIssue-BugResolution-DuplicateProduct-Terminal labels 2026-01-30 22:40:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1863