ios - Is there a more precise type than double in Swift? Why does the double type not display scientific notation if the value is too large?
大家讲道理
大家讲道理 2017-06-06 09:53:56
0
1
1393

If the double type value is too large, it will be displayed in scientific notation, for example, 5.6846032206862e 19

Using the double type when multiplying tens digits by tens digits may lead to inaccurate calculations. How to solve this problem? .

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
某草草

First of all, you need to understand how double calculates precision. Secondly, if it exceeds the maximum precision of double, it is usually displayed with a string. If you need to multiply large numbers, search for a lot of algorithms for multiplying large numbers;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template