Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.3K Views
|
5 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Numerical scientific notation in Mathematica?

Posted 3 years ago

Hello, People!

I have a problem right now with Mathematica. I want to write this value for example 3.48382834e-09 (written by a computer in engineering form) in scientific notation. I want it to be at the end like 3.48382834*10^(-9). The thing is, I have like 80 values written with this e and the WoNdErFuL Mathematica does not understand what e (not the exponential!!!!) in this case means. Is there a way to substitute e as 10^?

I will be really grateful.

POSTED BY: Anuar Sifuentes
5 Replies

Thanks, Eric! That solved my problem :D

POSTED BY: Anuar Sifuentes

You can read in the value like this.

val = ImportString["3.48382834e-09", "CSV"][[1, 1]];

It can be displayed like this.

ScientificForm[val, 9]

(* 3.48382834*10^(-9) *)
POSTED BY: Daniel Lichtblau

Here is an more elemantary way:

3.48382834 e - 09 /. Plus[x_, Times[y_, e]] -> y 10^x
POSTED BY: Hans Dolhaine

... the WoNdErFuL Mathematica does not undestand ...

You certainly have to respond to the syntax. But apart from that the wonderful Mathematica does understand, try:

Interpreter["Number"]["3.48382834e-09"]
(*  Out:    3.4838283400000004`*^-9   *)
POSTED BY: Henrik Schachner
Posted 3 years ago

If your number is a string, you can use Interpreter:

Interpreter["Number"]["3.48382834e-09"]
POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard