Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined name 'E' #20

Open
RdeWilde opened this issue Aug 16, 2018 · 1 comment
Open

Undefined name 'E' #20

RdeWilde opened this issue Aug 16, 2018 · 1 comment

Comments

@RdeWilde
Copy link

RdeWilde commented Aug 16, 2018

Line gives an error:

Undefined name 'E'

return pow(1 - pow(E, -1.0 * (hashFuncs * elements) / (data.length * 8)), hashFuncs);

Using Dart2. Should it just be lowercase?

@stevenroose
Copy link
Member

It seems that the variable E changed in Dart v2.

So, this is the one we need: https://api.dartlang.org/stable/2.0.0/dart-math/e-constant.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants