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

Input this but got NaN #1

Open
xuesongde opened this issue Dec 24, 2020 · 2 comments
Open

Input this but got NaN #1

xuesongde opened this issue Dec 24, 2020 · 2 comments

Comments

@xuesongde
Copy link

var similarity = require("string-cosine-similarity");
const chalk = require("chalk");

console.time();
var string1 = "3BA71E99560A";
var string2 = "20223B1EE20F";
const similarityValue = similarity(string1, string2);
console.log(chalk.bgBlue(similarityValue));
console.timeEnd();

output: default: 5.383ms
a58@58deMacBook-Pro node_all % node ./similarity/process.js
NaN
default: 5.463ms

@awesel
Copy link

awesel commented Oct 14, 2022

I am having this too. did you resolve?

@patel-vansh
Copy link

I am also facing same issue.

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

3 participants