Questions tagged [scientific-notation]

Scientific notation is a way of writing numbers. In scientific notation, all numbers are written in the form of a*10^b. In computing "E notation" is often used. It uses "E" or "e" letter instead of "*10^".

Scientific notation is a way of writing numbers that are too big or too small to be conveniently written in decimal form. Scientific notation has a number of useful properties and is commonly used in calculators and by scientists, mathematicians and engineers.

In scientific notation all numbers are written in the form of a*10^b, where a(mantissa) is a real number and b(exponent) is an integer.

There are different subtypes of this notation. E notation is often used in computing. It uses E or e letter instead of *10^. Note: in this usage the character e is not related to the mathematical constant e or the exponential function e^x

Some examples:

Standard deciaml | Normalized scientific | E (upper) | e (lower)
-----------------+-----------------------+-----------+----------
              30 |                3x10^1 |       3E1 |       3e1         
         1,538.1 |           1.5381x10^3 |  1.5381E3 |  1.5381e3         
     0.000 005 2 |           5.2x10^(-6) |    5.2E-6 |    5.2e-6         
            -0.2 |            -2x10^(-1) |     -2E-1 |     -2e-1         
683 questions
-1
votes
1 answer

How to add scientific labels to histogram plots?

I'm trying to print scientific labels above each bar plot, similar to my y-axis that already is set to a scientific notation. I've tried using "{:.2E}".format but that doesnt work as i'm trying to convert an entire array (count). Any ideas? xx=…
Tess
  • 35
  • 1
  • 5
-1
votes
1 answer

numpy: Print array enforcing scientific notation

I need to print a numpy array with scientific notation regardless of the value of the components of the array. To my knowledge, numpy.format_float_scientific acts only on scalars and returns error if applied to vectors - therefore, I need an…
DavDap
  • 11
  • 1
-1
votes
1 answer

SQL Server concat and convert

In SQL Server I am using the concat function to join two columns. One column is numeric. Because of that after concat, the output shows that number in scientific notation. Is there any way to avoid that scientific notation? I tried concat (convert…
user2543622
  • 5,760
  • 25
  • 91
  • 159
-1
votes
1 answer

how to prevent automatic shift in decimal numbers in numpy

Here is my code: y = np.array([-3.44 , 1.16 , -0.81]) y = np.exp(y) print(y) for this block, I got the below result [0.03206469 3.18993328 0.44485807] However, when I add 3.91 to the list, the result changed x = np.array([-3.44 , 1.16 , -0.81 ,…
alifallahi
  • 332
  • 1
  • 9
-1
votes
1 answer

How can I turn off Exponenntial Notation in C?

please enter num1 , op , num2 2e2+6 result= 206.000000 Process returned 0 (0x0) execution time : 8.657 s Press any key to continue. (How to use) ... any way to turn off this !
A2Z
  • 13
  • 1
-1
votes
1 answer

Is there a way to get to lower granularity converting from scientific notation

Initially I am receiving a value such as 61290983520229040997, and I subsequently am receiving a file with this in scientific notation in the form of 6.1291E+19. Is it possible to convert this back to this granularity as my attempts casting always…
Jim
  • 1
  • 2
-1
votes
1 answer

Convert a string containing a number in scientific notation to a normal string in PHP

I need help converting a string that contains a number in scientific notation to a normal string. Example strings: "9.1892E+11" to "918919850755"
Mohit Tiwari
  • 165
  • 2
  • 6
-1
votes
2 answers

How to display long numbers without scientific notation in Matlab?

How to display long numbers without scientific notation in Matlab? format long g doesn't help >> A=single([1456267123000 16.5]) A = 1×2 single row vector 1.456267e+12 16.5 >> format long g >> A A = 1×2 single row vector …
Dims
  • 47,675
  • 117
  • 331
  • 600
-1
votes
1 answer

Convert large double to scientific notation for use as string?

This question is very clearly in no way an "exact duplicate" of the marked question, and that post does not address my goal. If I have: double yuge = 1e16; And I try to add it to a string like this: std::string boogers = std::to_string (yuge) +…
Job Guidos
  • 11
  • 1
  • 6
-1
votes
1 answer

How to turn off scientific notation for double when appending it to ostringstream?

I have a small function which converts double to std::string: std::string convertDoubleToString( double value ) { std::ostringstream ostr; ostr << value; return ostr.str(); } I don't want to use the scientific notation here. How can I…
JavaRunner
  • 2,455
  • 5
  • 38
  • 52
-1
votes
1 answer

How to define an integer vector containing scientific notation correctly in C++?

The code #include #include int main () { std::vector N = {3e6, 4e6}; } Gives an error error: narrowing conversion of ‘3.0e+6’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]|||. Whereas #include #include…
Gytis
  • 111
  • 2
-1
votes
1 answer

JAVA: how do I convert a txt file into a 2-D array with numbers in E notation?

I have a .txt file with 300 rows and 785 columns with a bunch of numbers in E notation (e.g. -6.431571950262252035e-02). How would I covert those numbers into a 2-D array? This is all I have: double[][] hiddenArray = new double[300][785]; …
-1
votes
1 answer

Why is scientific notation not identical to integer in php?

I just wondered why my if statement was not entered when using scientific notation, i.e. 1e2 instead of 100 and 1e6 instead of 1000000. It turns out, those are only equal and not identical, as seen by the following code:
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
-1
votes
2 answers

how to convert a scientific notation number preserving precision

I have a some numbers like: 1.8816764231589208e-06 how I can convert to 0.00000018816764231589208 Preserving all precision
greenbandit
  • 2,267
  • 5
  • 30
  • 44
-1
votes
2 answers

How to convert exponent and coefficient to an integer value in SQL

****UPDATED**** How to convert an exponent and coefficient to an integer? Is there a built-in method in SQL? This is the value in scientific notation 6,1057747657e+011
Tassisto
  • 9,877
  • 28
  • 100
  • 157