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
1 answer

XmlSerializer C# - simple value passed by object are converted and displayed in as scientific value in xml file

We use XmlSerializer to serialize object into xml file. The input data's that is passed by object into xml file is in simple form, for ex, 9.3nA and 80 pA but they are displayed in its scientific notation as 9.3E-09 and 8E-11 respectively. I want…
jamilia
  • 359
  • 4
  • 14
0
votes
1 answer

number represented as E in spite of using scipen in R

I have a number like '102622812'. I have used scipen as follows options(scipen=999) But When I write the number to a file using write.csv, I still get it in a format like 1.03E+08 I have also tried converting this column to character type and…
tubby
  • 2,074
  • 3
  • 33
  • 55
0
votes
0 answers

Extremely slow Flex Remoting/Cffunction response when arguments include a string which can be cast to a VERY large number

I've run into a strange problem that I've been wrestling with for a few days. I'm hoping someone will have some insights. I have a Flex app that uses standard remoting to access a SQL db via ColdFusion. (Flex sdk 3.4 (yes, old), CF 10) I've…
0
votes
1 answer

Why does a number less than 0.1 and greater than 1e-7 get converted in scientific notation?

(0.1).toString() //0.1 (0.000001).toString() //0.000001 (0.000009).toString() //0.000009 Why do the above numbers get converted normally, but (0.0000001).toString() //1e-7 (0.0000008).toString() //8e-7 (0.0000000000089).toString() // 8.9e-12 these…
Akash Goel
  • 161
  • 10
0
votes
0 answers

using python and matplotlib to graph '1.888409001e+002;1.468905193e-002'

I have data within a file that I need to plot. The data pretty much looks like this: 1.988479004e+002;1.498905197e-002 I have changed the text to: 1.988479004*10**+002;1.498905197*10**-002. Do I need to change the *10** to something else for it to…
0
votes
2 answers

Converting a number to normalized scientific notation

I'm trying to create a method converting a number to normalized scientific notation, here is the code that I'm using to calculate mantissa and exponent: ConvNSN 1000, M, P MsgBox M & "e" & P Sub ConvNSN(N, M, P) If N = 0 Then P = 0 …
omegastripes
  • 12,351
  • 4
  • 45
  • 96
0
votes
0 answers

Exponent disappearing when printing numbers

this is my first post to Stack Overflow. I have used it many times before but this is the first error that I have not found a solution to thus far. I am having a problem with a Python script where when I am changing an element in a list, the item…
0
votes
1 answer

Swift scientific notation in base 16

I'm new in Swift language and playing with it. I know in most languages 1.5e3 means 1.5 * 10 ^3 and this is true in Swift. However, when it comes base 16, I have difficulty in understanding it. Below are 2 examples, hope someone can explain what…
Just a learner
  • 26,690
  • 50
  • 155
  • 234
0
votes
1 answer

MOS 6502 Emulator Causing Enhanced Basic to Output in Scientific Notation

I've been working on an emulator for the MOS 6502, and I nearly have it fully completed at this point. It has one small problem though. It seems to pass all of the tests that I put it through, but for some reason it causes Enhanced Basic to output…
NAME__
  • 625
  • 1
  • 7
  • 17
0
votes
2 answers

Reading scientific notation D+

How can I read data in scientific notation (D+) format into R? e.g. -0.416932D+01, -0.412300D+02
0
votes
1 answer

double to scientific notation conversion - precision error

I'm writing a piece of code to convert double values to scientific notations upto a precision of 15 in C++. I know I can use standard libraries like sprintf with %e option to do this. But I would need to come out with my own solution. I'm trying…
vibz
  • 157
  • 1
  • 12
0
votes
1 answer

php str_replace casting integer to scientific number

I do have issues with str_replace on my webserver casting intergers to scientific number notation. $strContent = "Yesterday was ##yesterdayTimestamp##!"; $yesterDayTimestamp = floor((time() - (24 * 3600)) / (24 * 3600)) * 24 * 3600 * 1000…
Manuel
  • 9,112
  • 13
  • 70
  • 110
0
votes
0 answers

Delphi 2006 - Creating locale-independent exponential-formatted numbers

I use the older functions Str and Val to write and read values that need to be persistent across different locales, but can you instruct Str to always format a floating point number in scientific format? I.e I want all floating point numbers to be…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
0
votes
1 answer

Floating Point to Scientific Format in UNIX

I have some data in this form: 0.123456 11.234567 -22.345678 -3.456789 4.567891 -5.678912 etc I would like to convert them in a matrix with 8columns in a scientific format with +- sign, one number before and 6 numbers after the decimal point, such…
eva_thess
  • 101
  • 1
  • 1
  • 7
0
votes
2 answers

Convert to scientific notation, Python 2.7

print "= ", W_ / 1000, "m^3/min" Currently this shows up as 0.001 m^3/min How do I make it display as 1.000e-03 m^3/min?
Kurohane
  • 33
  • 2
  • 9