Jump to content

BSL:Manual: Difference between revisions

No change in size ,  7 March 2021
m
link fixes
m (link fixes)
Line 464: Line 464:


===int===
===int===
A 32-bit signed [[wikipedia:integer|whole number]]; that is, it can be positive, negative or zero, with a maximum value of 2,147,483,647 and a minimum value of -2,147,483,648.
A 32-bit signed [[wikipedia:Integer|whole number]]; that is, it can be positive, negative or zero, with a maximum value of 2,147,483,647 and a minimum value of -2,147,483,648.


  var int example = -1000;
  var int example = -1000;
Line 485: Line 485:


===float===
===float===
A [[wikipedia:floating point|floating-point]] number. Bungie West actually never used floats in their scripts for Oni, which explains why there are certain rough aspects to them. For instance, floats are limited to six decimal places of precision:
A [[wikipedia:Floating point|floating-point]] number. Bungie West actually never used floats in their scripts for Oni, which explains why there are certain rough aspects to them. For instance, floats are limited to six decimal places of precision:


  var float good_example = 10.5; # returns as "10.500000"
  var float good_example = 10.5; # returns as "10.500000"