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.
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) *)
Here is an more elemantary way:
3.48382834 e - 09 /. Plus[x_, Times[y_, e]] -> y 10^x
... 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 *)
If your number is a string, you can use Interpreter:
Interpreter["Number"]["3.48382834e-09"]
Thanks, Eric! That solved my problem :D