Lets say i have a string "53.430996", I want to convert it to a string and store all the values after the floating point I tried:
#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <stdlib.h>
using namespace std;
int main(){
char* convertme="53.430996";
double converted=atof(convertme);
cout << converted;
return 0;
}
But the output is 53.431 but i need 53.430996 so I can later cast it to a long long with
static cast < long long > (coord ∗ 100000)
So, I can get the value without the floating point 5343099