<div dir="ltr"><div><br></div>OK, I'm parsing through a bunch of data. Occasionally I get something like :<div>$State="-7.7800825e-05"</div><div><br></div><div>Usually the "e" is capital ( I don't know why this product logs it this way ). When the Capital E goes through the if statements below it converts fine, but the lower case does not it seems...</div>
<div><br></div><div>I have put in the following sections to convert this:</div><div><br></div><div><div> $State =~ tr/e/E/;</div><div> </div><div> if ( $State =~ /E/ ) {</div><div> $State2 = sprintf("%.10g", $State);</div>
<div> $State=$State2;</div><div> }</div><div> if ( $State =~ /e/ ) {</div><div> $State2 = sprintf("%.10g", $State);</div><div> $State=$State2;</div><div> }</div><div><br></div><div><br></div><div>Any ideas?</div>
<div><br></div><div><br></div>-- <br>:wq!<br>---------------------------------------------------------------------------<br>Robert L. Harris<br><br>DISCLAIMER:<br> These are MY OPINIONS With Dreams To Be A King,<br>
ALONE. I speak for First One Should Be A Man<br> no-one else. - Manowar
</div></div>