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
0
votes
0 answers

PHP int 64 bit turns scientific notation way below its maximum value

My PHP environment is 64 bit: echo PHP_INT_MAX; 9223372036854775807 So I thought I could operate with integer values lower than PHP_INT_MAX value. But this code: echo (517002.962 * 1000000000); gives this result: 5.17002962E+14 So, I am…
0
votes
2 answers

R: get number output from density()

I am using R for GIS applications with spatstat and related packages. I would like to generate a kernel density raster, which I have already succeeded in doing using the following: spatialgrid <-…
corvus
  • 556
  • 7
  • 18
0
votes
2 answers

Pandas unexpected scientific notion

I have a large csv file contains some bus network information. The stop code are made of a large number with a certain letter in the end. However, some of them are only numbers. When I read them into pandas, the large numbers become in scientific…
GDI
  • 647
  • 1
  • 7
  • 17
0
votes
0 answers

PHP Asana API createInWorkspace failing on Google App Engine

I'm writing an integration to post tasks into Asana, using the official Asana PHP Client. Locally - using Google App Engine Launcher - my script is running as intended and the Asana task is created. Remotely, I'm getting an error from the…
Adam Hopkinson
  • 28,281
  • 7
  • 65
  • 99
0
votes
1 answer

Round double value to 2 decimal digits

I have been working with big numbers (with more that 20 digits) and for that reason I use Double . The form I get the numbers is like this 8.653762536765E28. What I want to do is just display the first 2 decimal digits. I want it like 8.65E28. I…
marduc812
  • 1,177
  • 17
  • 26
0
votes
1 answer

Create a list of elements, with each element with scientific notation

I have a numpy array with 3 elements; from this array, I'd like to create a list where each element is in scientific notation, and not a string. This seems like it should be easy, but I'm having trouble with it. My current script is as…
AaronJPung
  • 1,105
  • 1
  • 19
  • 35
0
votes
2 answers

UIStepper.value becomes scientific notation

This is my code: @IBAction func stepperChanged(sender: AnyObject) { let stepper = sender as! UIStepper stepper.stepValue = 0.1 stepper.minimumValue = 0.0 stepper.maximumValue = 1.0 print("stepper value: \(stepper.value)") } When…
Brian
  • 30,156
  • 15
  • 86
  • 87
0
votes
0 answers

Converting a .wxp (Exp document file) in .doc or .odt

I'm stuck in trying to open an old paper written in EXP, a word processor for the creation of scientific documents. Apparently, the file is not readable with word processors in Windows and/or Linux (Ubuntu). From the website it is possible to…
maumag77
  • 55
  • 1
  • 6
0
votes
2 answers

Sum Big Integers

I'm currently stuck on a Codewars challenge that I can't get my head around: Given a string representation of two integers, return the string representation of those integers, e.g. sumStrings('1','2') // => '3' I've used the following code so far,…
tombraider
  • 1,127
  • 1
  • 11
  • 19
0
votes
2 answers

Precision of scientific notation in R

How accurate is scientific notation in R? I'm generating data that as values like this: -5.59924596431885e-320 Is this an accurate value? I know R is usual only accurate to 15 decimal places when the number is written like this: -2.1411372887 So…
Plinth
  • 289
  • 1
  • 13
0
votes
1 answer

How to check if string is text or scientific number?

I am curious, if there is option in VBA to check if string is just text or its number in scientific format e.g.(0,212E+01). I tried isNumeric, val and some other functions,but without success. Also I found solution which is testing middle character…
Luboš Suk
  • 1,526
  • 14
  • 38
0
votes
0 answers

tinylog formatting for double values

I use tinylog for logging to file and console both. And I face with issue, that when I write to log double numbers, it's displayed in scientific (exponential) notation. For example, I have such line in my code: Logger.info("Community with…
Hleb
  • 7,037
  • 12
  • 58
  • 117
0
votes
1 answer

Reading timestamp in ms from csv, showing in scientific format in Matlab

I have a csv file including a timestamp column. In Notepad, in Excel and in Matlab the value appears in scientific format, e.g. '1,44532E+12'. As such, the value is highly inaccurate. In Excel I can calculate the difference between 2 values and get…
Don Joe
  • 1
  • 1
0
votes
2 answers

How to convert decimal scientific notation float/double to normal string

I know there are many questions solving this problem when the number is not very large, but when it comes to large numbers (while still in range of float/double), the output will lose precision : #include #include #include…
Dennis Wong
  • 189
  • 4
  • 11
0
votes
2 answers

Scientific notation in MATLAB

Say I have an array that contains the following elements: 1.0e+14 * 1.3325 1.6485 2.0402 1.0485 1.2027 2.0615 1.7432 1.9709 1.4807 0.9012 Now, is there a way to grab 1.0e+14 * (base and exponent) individually? If I do…
firefly
  • 201
  • 1
  • 3
  • 11