<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">I’ll merge the PR later today, though for scientific notation support using the native calculator (<code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">bc</code>) would it be sufficient to do a regex replace on the input expression, for example:</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">perl -pe 's/(-?\d+)e(-?\d+)/(\1*10^\2)/gi' <<< 140e9*1.31/65e6|bc -l
2821.53846153846153846153
</code></pre>

<p dir="auto">On 1 Aug 2018, at 8:44, Tim Bates wrote:</p>

</div>
<div style="white-space:normal"></div>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div id="A0F070B8-11FE-4FEB-B326-587488EC48CE"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Many thanks George!<div class=""><br class=""></div><div class="">I didn’t realise the underlying service - nice!<div class=""><br class=""></div><div class="">t<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 1 Aug 2018, at 3:09 pm, George McGinley Smith <<a href="mailto:george@gsgd.co.uk" class="">george@gsgd.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Just added a fix for the send to Google option (see here <a href="https://github.com/textmate/math.tmbundle/pull/1" class="">https://github.com/textmate/math.tmbundle/pull/1</a>) which gets your answer correct.</div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, 31 Jul 2018 at 05:42 Tim Bates <<a href="mailto:timothy.c.bates@gmail.com" class="">timothy.c.bates@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">an improved calc function would nice. e.g. cntrl-shift-C with "140e9*1.31/65e6 “ comes up blank… should  be 2,821.xx<br class=""></blockquote></div></div></blockquote></div><br class=""></div></div></div></div></blockquote>
<div style="white-space:normal">
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
</blockquote><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">_______________________________________________<br>
textmate mailing list<br>
textmate@lists.macromates.com<br>
<a href="http://lists.macromates.com/listinfo/textmate" style="color:#777">http://lists.macromates.com/listinfo/textmate</a></p>
</blockquote></div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>