TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ROBERT DAVIES
from: NEIL HELLER
date: 1998-01-23 20:26:00
subject: I DO NOT UNDER SRAND THIS

RD> I'm new to C++ and find that there are parts in the program below
RD> which I don't understand. If you have a look at lines nine and ten
RD> cout << 1.e3 << endl; //  1000
RD> cout << 1.e-3 << endl;  //  0.001
RD> Does 1.e3 mean one multiplied by a thousand, and 1.e-3
RD> mean one multiplied by minus a thousand?
I first used scientific notation in Pascal so the specific language
really has nothing to do with it.  A way to read 1.e3 and 1.e-3 is to
take whatever's to the left of "e" and then move the decimal point
according to what follows the "e" (positive numbers to the right and
negative numbers to the left):
6.41e-4 = 0.000641
6.41e4  = 61,400
 * KWQ/2 1.2i *
--- FLAME v1.1
---------------
* Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.