[TxMt] Re: calc not handling e: 140e9*1.31/65e6 comes up blank...
Allan Odgaard
mailinglist at textmate.org
Wed Aug 1 06:55:02 UTC 2018
I’ll merge the PR later today, though for scientific notation support
using the native calculator (`bc`) would it be sufficient to do a regex
replace on the input expression, for example:
perl -pe 's/(-?\d+)e(-?\d+)/(\1*10^\2)/gi' <<< 140e9*1.31/65e6|bc -l
2821.53846153846153846153
On 1 Aug 2018, at 8:44, Tim Bates wrote:
> Many thanks George!
>
> I didn’t realise the underlying service - nice!
>
> t
>
>> On 1 Aug 2018, at 3:09 pm, George McGinley Smith <george at gsgd.co.uk>
>> wrote:
>>
>> Just added a fix for the send to Google option (see here
>> https://github.com/textmate/math.tmbundle/pull/1
>> <https://github.com/textmate/math.tmbundle/pull/1>) which gets your
>> answer correct.
>>
>> On Tue, 31 Jul 2018 at 05:42 Tim Bates <timothy.c.bates at gmail.com
>> <mailto:timothy.c.bates at gmail.com>> wrote:
>> an improved calc function would nice. e.g. cntrl-shift-C with
>> "140e9*1.31/65e6 “ comes up blank… should be 2,821.xx
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20180801/bef159c8/attachment.html>
More information about the textmate
mailing list