Post Reply 
RPL Mini-Challenge: All Odd Digits?
07-17-2017, 09:09 PM (This post was last modified: 07-17-2017 09:11 PM by Gilles59.)
Post: #43
RE: RPL Mini-Challenge: All Odd Digits?
(07-17-2017 08:43 PM)DavidM Wrote:  
(07-17-2017 06:26 AM)Werner Wrote:  SAME and == are not .. the same.

1 1. SAME returns 0.
1 1. == returns 1

Don't know why one would return an integer and the other a real, though..

Yes, and another way to show the difference is to tag one of the numbers:

1 :A:1 SAME returns 0.
1 :A:1 == returns 1

(07-17-2017 11:26 AM)Gilles59 Wrote:  In exact mode R= : 1 1. == returns 1
in approx mode R~ : 1 1. == returns 1.

Not very logical... Not really a bug in R= mode but ... a mistake

I wonder if this is unique to specific firmware versions. My v2.15 50g returns an exact 1 for both modes when executing "1 1. ==". <, >, ≤, ≥, and ≠ also work the same way for me. The only way I can get a real "1." or "0." result from any of the boolean comparisons is if the two arguments are both reals.

My mistake ! I enter the program in R~ mode and the 1 became a 1. I tough I run << 1 1. == >> but it was <<1. 1. == >>
Sorry.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: RPL Mini-Challenge: All Odd Digits? - Gilles59 - 07-17-2017 09:09 PM



User(s) browsing this thread: 1 Guest(s)