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

Bug in the duckduckgo calculator

Doumor opened this issue · comments

Description

The duckduckgo calculator does not work correctly with very small numbers.

Example:

1 / 1024 / 1024 = 9.53674316406e-7 (0.000000953674316406)

result * 100,000 = 2592355.56455

But it should be about 0.1.
//0.0953674316406

Judging by the caption at the top, the calculator doesn't read the result correctly and for some reason takes away -7 after e.

I could not find the duckduckgo bugtracker, so I am writing here.

People to notify

@duckduckgo/duckduckhack-contributors