How do I avoid scientific notation for large numbers?

后端 未结 8 1200
Happy的楠姐
Happy的楠姐 2020-12-15 05:04

I am doing 2^1000 and I am getting this:

1.07151e+301

Is there any way to actually turn this into a proper number without the e+301, or at least can anyone s

8条回答
  •  没有蜡笔的小新
    2020-12-15 05:50

    cout << fixed << your_number;

    But it won't probably show the whole number. As someone said before, you need to write a class.

提交回复
热议问题