duckduckgo / zeroclickinfo-goodies

DuckDuckGo Instant Answers based on Perl & JavaScript

Home Page:https://duckduckhack.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculator: BUG: Lack of E exponent in displayed result.

ProximaB opened this issue · comments

Description

E exponent does not show up in display result

image

Steps to recreate

The proper result could look like this:
1.6331239e+16
or
Infinity

I found out that the problem is with math.eval function.
I give you two example that you may consider:

math.eval("tan((pi) / 1)") -1.2246467991473532e-16

math.eval("tan((pi) / 2)") 16331239353195370

This may be useful: https://stackoverflow.com/questions/38295501..

People to notify

@duckduckgo


Instant Answer Page: https://duck.co/ia/view/{ID}

Thanks for the suggestions. DuckDuckHack is in maintenance mode and during this time we are only accepting issues for critical bug reports.

This will be marked as tolerated and closed.