#include <iostream>
int main()
{
double a = 2 , b = 3;
double answer = a/b;
std::cout << answer;
std::cout << std::to_string(answer);
}
Float or double I get : 0.666667;
I was expected more precision from the double ; How do i get something more like : 0.666666666666667
Edit : and i need to not lose the precision by using to_string;