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
5 answers

Comparing decimal values in java

I am trying to get certain values from a comma separated CVS file. So far this is my code: import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.math.BigDecimal; class A { public static void…
user340
  • 375
  • 12
  • 28
0
votes
1 answer

Replace comma with dots in lists with scientific notation in R

I have a list with data in scientific notation that uses commas instead of dots as decimal separator. I want to change all commas to dots. Someone great in here showed me how to do this for dataframes: text <- "3,063E+01 1,775E-02 6,641E-07…
curbholes
  • 557
  • 2
  • 5
  • 11
0
votes
1 answer

correct scientific notation on CSV import into MATLAB

I have a set of numerical data in a CSV file that is accompanied with a letter which denotes the mathematical notation for the associated number such as 'm' for milli, 'n' for nano. for example 190.4 n 100.7 n 20.3 n 9.5 m ect Now when I import…
david
  • 49
  • 5
0
votes
1 answer

Extracting scientific notation from a string

I am trying to extract scientific notation from strings like: `#DataCGSConversionFactor[0] = 1.0051900924519e-29` Unfortunately because of the first 0 that isn't a part of the number I want, the other solutions I have tried don't work,…
Josh H
  • 23
  • 2
0
votes
1 answer

Get decimal places for a double value

I'm working with VB.NET: I'm looking for a function which gets the number of decimal places for a double value. I already have a function which does this for values like "0.01", but not for values like "1E-6", but that's what I need. There is a…
user11909
  • 1,235
  • 11
  • 27
0
votes
0 answers

Strange scientific notation behavior in javascript

I stumbled upon some strange behaviour of auto-magically parsed numbers in javascript. I have some product objects to show in a tabs component (of jquery UI) and these objects are only temporary so I prepared for every one of them some unique ID. I…
Kelu Thatsall
  • 2,494
  • 1
  • 22
  • 50
0
votes
1 answer

Import Excel to Matlab without numeric data appearing in scientific notation

My question is hopefully a simple one for experienced Matlab users. How can I import data in an Excel sheet to Matlab without Matlab automatically converting the numeric data to scientific notation? The data I'm working with are ID numbers, up to…
DanMcK
  • 37
  • 9
0
votes
1 answer

Scientific `d` notation not read in C++

I need to read a data file in which numbers are written in a format like this: 1.0d-05 C++ doesn't seem to recognize this type of scientific notation! Any ideas on how I could read/convert those types of numbers? I need numbers (i.e. double /…
0
votes
2 answers

Invalidate scientific notation with 0 value exponent or trailing 0s

I am using this solution to regex scientific notation: /-?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/ I'd like to add a slight amount of space conservation, so I'd like to also forbid trailing zeros after the decimal point and zero value as the…
user1382306
0
votes
3 answers

Setting precision in PHP

I have installed PHP 5.5 on my laptop, who's running Windows. I'm accessing Smartsheet API, and I supposed to get a column id a number with 18 digits(or sometimes 17). But I get a scientific number: 1.5441916385627E+15, not 1544191638562692 I ran…
dpuscau
  • 11
  • 1
0
votes
3 answers

convert scientific notation to decimal (not integer) in bash/perl

I have a tab delimited file with several columns (9 columns) that looks like this: 1:21468 1 21468 2.8628817609765984 0.09640845515631684 0.05034710996552612 1.0 0.012377712911711025 54.0 However in column 5 I sometimes have…
0
votes
2 answers

How to avoid scientific notation of a large double while converting to xml with xstream in Java

I'm using xstream to convert a object in xml format while the class has a double field. Recently I found a object with a large double like 140936219.00 But in the output xml file, it became: Mike
macemers
  • 2,194
  • 6
  • 38
  • 55
0
votes
1 answer

Engineering Format of y-axis values in AChartEngine for Android

I am working on a project where I need plotting data. I use Android Studio 5.2.0 and AChartEngine 1.2.0 on a Windows 7 64 bits PC. I am interested in engineering formatting of y-labels, e.g. 2.3E6.. I have studied what I could without any success. I…
0
votes
1 answer

Struts 2 - Double with scientific notation issue

I'm having a problem dealing with Struts 2 and Javascript. This is the javascript code: geocoder.geocode({'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { var latitud…
0
votes
1 answer

How to Convert The Display Format (Scientific notation to Double)

How to convert the scientific Notation in to Double.. Please kindly refer the image For your reference on the header column i want to display the original "-" or "+" value i want to display not scientific notation how can i do this?Coding Part …
GOPI
  • 1,042
  • 8
  • 30