-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Implemented Idint #3193
Conversation
There was a problem hiding this 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!
@@ -0,0 +1,11 @@ | |||
program intrinsics_128 | |||
double precision :: x | |||
x = 4.23 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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 :)
Continuation of #3177