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

small floats #18

Open
SamuelMathieu-code opened this issue Aug 2, 2023 · 1 comment
Open

small floats #18

SamuelMathieu-code opened this issue Aug 2, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@SamuelMathieu-code
Copy link

Hi!
Currently in DLMReader/InMemoryDatasets, Floats very close to zero (under 5e-324) are parsed as missing values. It seems to me that the prefered behaviour should be to parse those as 0.0 (like CSV/DataFrames does) in order to distinguish from "real" missing values. Keeping the warning (as opposed to CSV) is probably a good idea though. What do you think about it?

Thanks a lot!

@sl-solution sl-solution added the enhancement New feature or request label Aug 5, 2023
@sl-solution
Copy link
Owner

I think Julia Base parser doesn't allow such a behaviour, however, the Parsers package provides such a functionality. Currently, DLMReader prints warnings for the mentioned cases, however, maybe it would be a good idea to round the values to zero and keep the warning message.

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

No branches or pull requests

2 participants