User Tools

Site Tools


scripting:datatypes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:datatypes [2022/08/11 14:33] – [vector] jerryhopperscripting:datatypes [2022/08/25 14:30] (current) jerryhopper
Line 24: Line 24:
  
 In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable.  In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. 
 +
 +Example:
 +  string greeting = "Hello"
 ===== int ===== ===== int =====
  
 The INTEGER data type stores whole numbers that range from -2,147,483,647 to 2,147,483,647 for 9 or 10 digits of precision. The INTEGER data type stores whole numbers that range from -2,147,483,647 to 2,147,483,647 for 9 or 10 digits of precision.
  
 +Example:
 +
 +  int counter = 1
 ===== float ===== ===== float =====
  
Line 34: Line 40:
 The FLOAT data type stores double-precision floating-point numbers with up to 17 significant digits. FLOAT corresponds to IEEE 4-byte floating-point, and to the double data type in C. The range of values for the FLOAT data type is the same as the range of the C double data type on your computer. The FLOAT data type stores double-precision floating-point numbers with up to 17 significant digits. FLOAT corresponds to IEEE 4-byte floating-point, and to the double data type in C. The range of values for the FLOAT data type is the same as the range of the C double data type on your computer.
  
 +
 +float speed = 1.12346
 ===== vector ===== ===== vector =====
  
Line 42: Line 50:
 Example: Example:
   vector direction = {0,0,1};   vector direction = {0,0,1};
 +  
 +===== RestContext  =====
 +
 +returned data from a httpREST request.  See: [[scripting:restapi]]
 +
 +  
 ===== GameMaterial =====  ===== GameMaterial ===== 
  
scripting/datatypes.1660224792.txt.gz · Last modified: 2022/08/11 14:33 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki