Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

float

   
Examples  
float a;          // Declare variable "a" of type float 
a = 1.5387;       // Assign "a" the value 1.5387 
float b = -2.984; // Declare variable "b" and assign it the value -2.984 
float c = a + b;  // Declare variable "c" and assign it the sum of "a" and "b" 

Description   Datatype for floating-point numbers, a number that has a decimal point. Floating-point numbers are often used to approximate analog and continuous values because they have greater resolution than integers. Floating-point numbers can be as large as 3.40282347E+38 and as low as -3.40282347E+38. They are stored as 32 bits of information.
   
Syntax  
float var
float var = value
   
Parameters  
var   variable name referencing the float

value   any floating-point value

   
Usage   Web & Application
   
Related   splitFloats()
int
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas