소스 검색

Merge pull request #2649 from aaronfranke/int-float-bool

Update GDScript int, float, and bool docs
Rémi Verschelde 6 년 전
부모
커밋
aae3640194
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 4
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 7 - 4
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -349,18 +349,21 @@ be assigned any other value.
 bool
 ^^^^
 
-The Boolean data type can only contain ``true`` or ``false``.
+Short for "boolean", it can only contain ``true`` or ``false``.
 
 int
 ^^^
 
-The integer data type can only contain integer numbers (both negative
-and positive).
+Short for "integer", it stores whole numbers (positive and negative).
+It is stored as a 64-bit value, equivalent to "int64_t" in C++.
 
 float
 ^^^^^
 
-Used to contain a floating-point value (real numbers).
+Stores real numbers, including decimals, using floating-point values.
+It is stored as a 64-bit value, equivalent to "double" in C++.
+Note: Currently, data structures such as Vector2, Vector3, and
+PoolRealArray store 32-bit single-precision "float" values.
 
 :ref:`String <class_String>`
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^