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

Reading integers vs reals, and writing integers vs reals #10

Closed
stefanedwards opened this issue Oct 6, 2016 · 1 comment
Closed

Reading integers vs reals, and writing integers vs reals #10

stefanedwards opened this issue Oct 6, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@stefanedwards
Copy link
Owner

I have noticed the following:

1: Using format statement (Iw) does not work if the variable is a real.

2: Fortran throws a fit if trying to read a real formatted number into an integer. No help there.

Int to int is easy, real to real even so. But what do we do about cross-overs, i.e. reading integers and output reals (easy), and reading reals and outputting integers?

@stefanedwards stefanedwards added this to the 1.0.0 Beta milestone Oct 6, 2016
@stefanedwards stefanedwards self-assigned this Oct 6, 2016
@stefanedwards
Copy link
Owner Author

Give functions arguments int and format. Refer to parse.format function (in R/internals.R; might not be pushed yet).

Subroutines can choose to allocate an integer or real array for printing. Compiler optimisations should be able to handle a static 'if' within the writing parts. Reading data in is done with a real array.

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

No branches or pull requests

1 participant