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

Implemented Idint #3193

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Implemented Idint #3193

merged 2 commits into from
Jan 25, 2024

Conversation

parth121101
Copy link
Contributor

Continuation of #3177

Copy link
Contributor

@Pranavchiku Pranavchiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addresed #3177 (comment), rest all looks good to me. Thanks!

@Pranavchiku Pranavchiku marked this pull request as ready for review January 25, 2024 05:03
@Pranavchiku Pranavchiku mentioned this pull request Jan 25, 2024
@Pranavchiku Pranavchiku merged commit a367a87 into lfortran:main Jan 25, 2024
21 checks passed
@@ -0,0 +1,11 @@
program intrinsics_128
double precision :: x
x = 4.23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to write this as:
4.23d0
otherwise it's a single precision number, not double precision.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh okay, yes. I thought of this, but then LFortran casts it in ASR, hence I enabled auto-merge. I am sorry for it, will take care from next time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it gets cast, but as a Fortran programmer, if you want to get 4.230000000000000 and not 4.23000000134583745, you need to use d0 or _dp.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, yes. I will take care :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants