简体   繁体   English

任何一种双倍获得超过13个小数点的方法? C#还是JS?

[英]any way of getting more than 13 decimal points in a double? C# or JS?

is there any way i can get a double to contain more than default 13 (17 in JS) decimal points in C# or JS? 有什么办法可以使Double在C#或JS中包含超过默认的13个小数点(在JS中为17个)? Like a double with first 25 PI digits? 像是前25位PI数字的双精度?

Standard Data Types 标准数据类型

Both the double in C# and he normal number data type in JavaScript is stored as 64 bit number, see https://www.w3schools.com/js/js_numbers.asp and https://www.tutorialspoint.com/csharp/csharp_data_types.htm C#中的double和JavaScript中的常规数字数据类型都存储为64位数字,请参阅https://www.w3schools.com/js/js_numbers.asphttps://www.tutorialspoint.com/csharp/csharp_data_types热媒

This limits the number of decimal points that can be represented. 这限制了可以表示的小数点数量。 However, there are appropriate Libraries to handle this issue 但是,有适当的图书馆来处理此问题

Possible Solutions 可能的解决方案

There are numerous libraries that handle large numbers and high precision floating point numbers. 有许多处理大量和高精度浮点数的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在javascript中显示超过20个小数点? - How to display more than 20 decimal points in javascript? JS 将小数点后 3 位舍入到小数点后 2 位 - JS Rounding 3 decimal points to 2 decimal 有什么办法可以防止 input type="number" 获得多个点值? - Is there any way to prevent input type=“number” getting more than one dot values? 防止用户在 JS 计算器中输入多个小数点 - Prevent user to type more than one decimal dot in a JS calculator 多次获取两个点之间的距离 - Getting the Distance between Two Points More than Once 如果超过2000点,Highstock.js将显示错误的值 - Highstock.js display incorrect value if more than 2000 points JS / Regex匹配方式不应该 - JS/Regex matching way more than it should 除了 .toFixed() 方法之外,还有其他方法可以在 suitlet 中将小数点后 2 位的数字打印为小数点后 3 位吗? - is there any other way than .toFixed() method, in suitlet to print a 2 decimal placed number as a 3 decimal place? 有什么办法可以在页面上加载多个Google翻译小部件 - Is there any way for more than one Google Translate widget to be loaded on a page 有没有办法在GWT中应用具有多个子窗口小部件的FocusPanel - Is there any way to apply FocusPanel in GWT with more than one Child widget
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM