Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

Exploring stringstreams

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 1.02 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 1.35 sec 
fork mode |  history  | discussion
Please enter a number
Data as string = 4096.50

Data as integer = 4096
iData * 2 = 8192

Data as double = 4096.5
dData * 3.30 = 13518.4

string:	123456789.5321	integer:	123456789
123456789*2 = 246913578

string:	123456789.5321	double:	123456789.532
123456789.532*2.0 = 246913579.064