From cdd4ef33e34cd68d2f0cbeeeadafd15666890e7d Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sun, 21 Jul 2019 22:50:52 -0400 Subject: [PATCH] Update int, float, and bool docs It's useful to explain what C++ type they use in the background so that people with any questions can look up the equivalent type in C++ if they need more specific documentation. --- .../scripting/gdscript/gdscript_basics.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/getting_started/scripting/gdscript/gdscript_basics.rst b/getting_started/scripting/gdscript/gdscript_basics.rst index aae1ee769..b66fc692f 100644 --- a/getting_started/scripting/gdscript/gdscript_basics.rst +++ b/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 ` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^