Floating-point constants

From Microduino Wiki
Revision as of 03:42, 18 August 2016 by Fengfeng (talk)
Jump to: navigation, search

Floating-point constants Similar to int constants, floating-point constants can make the code more readable. Floating-point constants are transformed into the values of their expressions when compiling.

  • Example

n = .005; Floating-point numbers can be represented in scientific notation. 'E' and 'e' both can be used as effective index signs.

Floating-point number		Transformation		Transformation
10.0 		               10
2.34E5			        2.34 * 10^5	        234000
67E-12		                67.0 * 10^-12	        0.000000000067

[Return to Arduino Syntax Manual]