cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
what does a "e" follow with a float num
what does a "e" follow with a float number mean?
Nov 4, 2015 at 7:05am UTC
zhuzhanhao1991
(14)
float powLU = powf(LU, 1.0e6f);
what the "e6f" does?
Last edited on
Nov 4, 2015 at 7:11am UTC
Nov 4, 2015 at 7:16am UTC
Zhuge
(4664)
The e6 portion is scientific notation; the number 1.0e6 is an alternate way of writing 1.0×10
6
. The f on the end is a suffix indicating that the literal is a float, rather than a double.
Nov 4, 2015 at 7:17am UTC
JLBorges
(13770)
See:
http://en.cppreference.com/w/cpp/language/floating_literal
Topic archived. No new replies allowed.