Post Reply 
Probable bug in CAS Settings (6940)
12-09-2014, 11:11 PM
Post: #1
Probable bug in CAS Settings (6940)
"Change apparent integer into exact integer" don't work. - the check box after Integers settings on first page.

When checked, entering 2.0 returns 2. instead 2
Find all posts by this user
Quote this message in a reply
12-10-2014, 12:04 AM
Post: #2
RE: Probable bug in CAS Settings (6940)
(12-09-2014 11:11 PM)slawek39 Wrote:  "Change apparent integer into exact integer" don't work. - the check box after Integers settings on first page.

When checked, entering 2.0 returns 2. instead 2

According to the help text:

"If checked, any real number equivalent to an integer in a non-CAS environment will be converted to an integer in the CAS. (Real numbers not equivalent to integers are treated as real numbers in CAS whether or not this option is selected."

1. Entering numbers with the fraction symbol (typically the decimal point ".") tells the CAS that the number being entered is specifically NOT an exact value. Thus, typing in 2.0 will not convert the value to 2 (without the fraction symbol). This is common in many CAS and is not limited to just the HP Prime.

2. The option only applies to data imported from non-CAS environments. I think this is referring to, as an example, values stored in the built-in global variables normally used in the Home view. That is, if you save 2.0 into the variable A, the CAS will interpret that as 2 and not 2.0. Even if you enter in A:=2.0, the CAS uses 2 instead because it's pulling the value of A from a non-CAS environment. Similar behavior can be seen when using data from various apps or when using values pulled from Home view (and the user has set Fixed 4 mode for numbers), etc.

That's how I understand it.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
12-10-2014, 05:20 PM
Post: #3
RE: Probable bug in CAS Settings (6940)
(12-10-2014 12:04 AM)Han Wrote:  
(12-09-2014 11:11 PM)slawek39 Wrote:  "Change apparent integer into exact integer" don't work. - the check box after Integers settings on first page.

When checked, entering 2.0 returns 2. instead 2

According to the help text:

"If checked, any real number equivalent to an integer in a non-CAS environment will be converted to an integer in the CAS. (Real numbers not equivalent to integers are treated as real numbers in CAS whether or not this option is selected."

1. Entering numbers with the fraction symbol (typically the decimal point ".") tells the CAS that the number being entered is specifically NOT an exact value. Thus, typing in 2.0 will not convert the value to 2 (without the fraction symbol). This is common in many CAS and is not limited to just the HP Prime.

2. The option only applies to data imported from non-CAS environments. I think this is referring to, as an example, values stored in the built-in global variables normally used in the Home view. That is, if you save 2.0 into the variable A, the CAS will interpret that as 2 and not 2.0. Even if you enter in A:=2.0, the CAS uses 2 instead because it's pulling the value of A from a non-CAS environment. Similar behavior can be seen when using data from various apps or when using values pulled from Home view (and the user has set Fixed 4 mode for numbers), etc.

That's how I understand it.
Thank you for the valuable information.
Find all posts by this user
Quote this message in a reply
Post Reply 




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