I'm looking for a literal which would convert scientific notation to a type other than double. In my case, i need uint64_t
. It should do something like this:
uint64_t x = 1e6_ui64;
But I'm not sure if there is something already present in C++ or one of its standard libs.
Where can I find literals for scientific notation? Do they exist in C++? Or should I implement them myself?