Microsoft/calculator

Programmer mode on Calculator supports unsigned values

Open

#66 创建于 2019年2月27日

在 GitHub 查看
 (27 评论) (116 反应) (0 负责人)C++ (2,422 fork)batch import
EnhancementPri: 2help wantedneeds spec

仓库指标

Star
 (16,196 star)
PR 合并指标
 (平均合并 15小时 43分钟) (30 天内合并 7 个 PR)

描述

Problem Statement Programmers need to work with both signed and unsigned values. Calculator is currently optimized for signed values only.

Evidence or User Insights For example, while calculator will works on INT64 numbers, if I try to paste in a UINT64 value, e.g. 18403114778001080163, it shows as invalid input. Also, currently, the Bit Flip pane only supports signed numbers (the most significant bit is the Sign bit). Unsigned number support is a gap in our programmer mode.

For example, "256" does not fit into a single byte (requires a word): image

Proposal Add support for unsigned values in programmer mode.

Goals

  • Support both signed and unsigned values in programmer mode.
  • Support the option to switch between working with signed and unsigned values.
  • All applicable operations should adapt to signed/unsigned status.
  • Ensure that terminology is consistent with standards when referring to types like QWORD, DQORD, WORD, and BYTE (these terms generally refer to the unsigned versions).

Non-Goals

  • None

Low-Fidelity Concept image

Requested Assignment I'm just suggesting this idea. I don't want to implement it.

贡献者指南