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

numerically equal float and int display as the same in REPL #236

Open
iacore opened this issue Feb 11, 2024 · 1 comment
Open

numerically equal float and int display as the same in REPL #236

iacore opened this issue Feb 11, 2024 · 1 comment

Comments

@iacore
Copy link

iacore commented Feb 11, 2024

In cozo repl, write

=> ?[] <- [[1], [1.0]]
 _0 
----
 1 
 1 

It looks like two identical rows but it's not.

To avoid this confusion, maybe it's better to always display floats with a dot, like 1. or 1.0, given that other data types are visually distinct to each other.

@creatorrr
Copy link
Contributor

yes I have noticed this as well

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