Top "Significant-digits" questions

Significant digits are a way of describing the precision of measurements in a scale-independent way.

Save list to csv with two decimal digits in python?

I have data which looks like [('A',5.3748),('B',8.324203),('C',3.492)] I'm saving it to a csv with the following lines: with …

python csv significant-digits
rounding to an arbitrary number of significant digits in javascript is not working

I tried below sample code function sigFigs(n, sig) { if ( n === 0 ) return 0 var mult = Math.pow(10, sig - Math.floor(…

javascript rounding significant-digits
String Format % with significant figures

I am using the following code to show percentage using String.Format but I also want to limit the number …

c# string-formatting significant-digits
Rounding significant figures in R

So basically I am doing a physics experiment, and in my table I want to have my data rounded to …

r rounding presentation significant-digits
Counting significant figures in Python?

Is there a way in Python to count the significant figures in a double/float/etc? I'm not seeing an …

python math chemistry significant-digits
Set Least Significant Bit in C

I write a simple steganography tool in C with bmp images. I read the image to memory and the text …

c bit steganography significant-digits
Preventing double.Parse from removing trailing zeros after decimal place?

When using double.Parse, it seems to like to string away any trailing (insignificant) zeros from the string that I'm …

c# double significant-digits
Get most significant digit in python

Say I have list [34523, 55, 65, 2] What is the most efficient way to get [3,5,6,2] which are the most significant digits. If possible …

python list integer significant-digits