[ create a new paste ] login | about

Link: http://codepad.org/qlHe5b2k    [ raw code | output | fork ]

C++, pasted on Feb 16:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>

using namespace std;

int main()
{
float myFloatNumber = 0;
string inputString = "23.2445";
sscanf(inputString.c_str(), "%f", &myFloatNumber);
cout<< myFloatNumber * 100;

}


Output:
1
2324.45


Create a new paste based on this one


Comments: