Skip to content

Commit

Permalink
docs: 解释 char 可能是有符号数或无符号数
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims authored Oct 24, 2024
1 parent fe3b2e4 commit dc8faa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faq/basic_concepts/type_conversion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
- 非 0 -> :cpp:`true`.
- 0 -> :cpp:`false`.

- :cpp:`char` 类型可能采用 :cpp:`signed char` 或 :cpp:`unsigned char` 的表示方式; 但 :cpp:`char` 是独立的类型, 不是 :cpp:`signed char` 类型, 也不是 :cpp:`unsigned char`!
- :cpp:`char` 类型可能采用 :cpp:`signed char` 或 :cpp:`unsigned char` 的表示方式, 也就是说可能是有符号数或无符号数; 此外, :cpp:`char` 是独立的类型, 不是 :cpp:`signed char` 类型, 也不是 :cpp:`unsigned char`!

-> 浮点数
- 只要有可能, 转换为足够精确的数值, 例如整数 :cpp:`1` 转换为浮点数 :cpp:`1`.
Expand Down

0 comments on commit dc8faa7

Please sign in to comment.