in reply to Decimal to Scientific notation
You mean like this?
#!/usr/bin/perl use warnings; use strict; my $dec = "0.99982928833"; my $sci = sprintf("%.11e", $dec); print $sci;
-stevieb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Decimal to Scientific notation
by kepler (Scribe) on Mar 24, 2015 at 15:57 UTC | |
by Athanasius (Archbishop) on Mar 24, 2015 at 16:09 UTC | |
by kepler (Scribe) on Mar 24, 2015 at 18:01 UTC | |
by stevieb (Canon) on Mar 24, 2015 at 16:27 UTC |