Reference for Wiring 1.0 (ALPHA) 0017+. If you have a previous version, use the reference included with your software.
If you see any errors or have any comments, let us know.
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.4028235E+38 and as low as -3.4028235E+38. They are stored as 32 bits (4 bytes) of information.
십진 소숫점을
사용하는 부동소숫점
데이터 형입니다. 부동
소숫점 수는 정수보다
분해능이 크기때문에
아나로그나 연속적인
값을 표시할 때
사용됩니다.
부동소숫점 수는 3.4028235E+38
에서 -3.4028235E+38 까지의 표시
범위이며 32비트로
저장됩니다.