-
Oct 23rd, 2020, 08:21 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Strange arithmetical error with double precision
I 'm sitting for hours infront of my computer staring in disbelief.
I 'm writing a simple piece of code like:
x1# = 5
y1# = x1#
x2# = 10
y2# = y1# + x2#
The answer comes out as y1# = 0, y2# = 0 !
-
Oct 23rd, 2020, 08:31 PM
#2
Re: Strange arithmetical error with double precision
That code exactly as is works fine for me.
Post the actual code, you're probably overlooking something like scope or changes taking place elsewhere.
-
Oct 24th, 2020, 09:34 AM
#3
Thread Starter
Addicted Member
Re: Strange arithmetical error with double precision
Originally Posted by johnywalker
I 'm sitting for hours infront of my computer staring in disbelief.
I 'm writing a simple piece of code like:
x1# = 5
y1# = x1#
x2# = 10
y2# = y1# + x2#
The answer comes out as y1# = 0, y2# = 0 !
Bs.
Thanks to posting here I found out.
I tried to repost a more complete piece of code and strange symbols appeared.
There were Greek letters where they should n't and those come out as symbols here !
Some of the Greek letters are look alike with the Latin ones.
-
Oct 24th, 2020, 10:24 AM
#4
Re: Strange arithmetical error with double precision
so? fix the Greek Letters, and repost....no???
Sam I am (as well as Confused at times).
-
Oct 24th, 2020, 11:20 AM
#5
Thread Starter
Addicted Member
Re: Strange arithmetical error with double precision
Originally Posted by SamOscarBrown
so? fix the Greek Letters, and repost....no???
It works now.
Could be seen only because Greek letters cannot be printed in this page when I coppy-paste and something else appeared.
-
Oct 25th, 2020, 08:10 AM
#6
Re: Strange arithmetical error with double precision
Cool...can you mark this Thread as RESOLVED, then? Thx
Sam I am (as well as Confused at times).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|