pi
How to get decimal to n places precision in C# program for Pi
With reg to this question Pi in C# I coded the below code and gives a output with last 6 digits as 0. So I want to improve the program by converting everything to decimal. I have never used decimal i[详细]
2023-03-03 10:20 分类:问答find the value of pi till 50 digits
I want to calculate the value of PI till 50 digits. Ho开发者_开发百科w to do this in java for 50 decimal places?You cant do that with default data types, as you need for 50 digits: 50 / log(2) * log([详细]
2023-02-22 16:51 分类:问答Data type/structure for merging data in a datagridview
I开发者_运维技巧 have a currently have the user input a tag, I get the values for that tag (which are a timestamp/value pair) into a datagridview. I\'d like the option to add multiple tags which would[详细]
2023-02-17 17:49 分类:问答.NET C# Double equivalent System.Numerics.BigInteger
I\'m am currently writing a program that calculates the digits of pi, and I have a problem. After three iterations the number of correct digits exceeds the memor开发者_如何学Goy available in a double.[详细]
2023-02-14 14:16 分类:问答segmentation fault in pi calculation (python)
def pi(times): seq = [] counter = 0 for x in range(times): counter += 2 seq.append(\"((%f**2)/(%f*%f))*\"%(float(counter), float(counter-1), float(counter+1)))[详细]
2023-02-14 07:42 分类:问答How to calculate exact value of a trig function?
I am writing a \"triangle solver\" app for Android, and I was wondering if it would be possible to implement exact values for trig ratios and radian measures. For example, 90 degrees would be output a[详细]
2023-02-10 02:27 分类:问答How can I show a decimal in a text field?
I am creating a simple console application that shows the value of PI up to a certain number of decimals. For now, I have written the following code:[详细]
2023-02-01 23:21 分类:问答Using basic arithmetics for calculating Pi with arbitary precision
I am looking for a formula/algorithm to calculate PI~3.14 in a given precision. The formula/algorithm must have only very basic arithmetic as[详细]
2023-01-31 21:18 分类:问答Pi help with Php (mass looping)
My primary question is: Is this alot of loops? while ($decimals < 50000 and $remainder != \"0\") { $number = floor($remainder/$currentdivider); //Always round down! 10/3 =3, 10/7 = 1[详细]
2023-01-04 03:34 分类:问答Raspberry Pi 2 将免费预装 Windows 10?
微软物联网团队宣布,微软Windows10将支持树莓Pi2(树莓Pi),并将通过今年晚些时候推出的Windows物联网开发者计划向社区免费开放。[详细]
2023-01-01 18:21 分类:问答