The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
point, comma, semicolon confusion
02-29-2020, 09:25 AM (This post was last modified: 02-29-2020 09:29 AM by StephanP.)
Post: #1
point, comma, semicolon confusion
While testing out the code kindly provided by another user, I stumbled onto the following confusion:

1. The code as provided ran just fine on the emulator on my desktop PC
2. The same code would not run on my laptop, nor my HP Prime device

After some investigation I learned the following:
1. I had to replace all delimiter comma's in the code for semicolons
2. I had to replace one decimal point for a decimal comma

Now, where does all this come from?
1. Changing the language setting in the emulator or the device does not make a difference
2. While entering parameters to the standard function NORMALD_CDF(), pressing the comma key actually gives me a semicolon (The Help function tells me to use comma's (?))
3. Calculating decimal numbers is giving me comma's on the screen.

Now, this last one could be tracked back to one of the personal settings: Number Format

For Program Code all this confusion can be quite a bother and actually provides a barrier in sharing and reusing programs.
- So, is this in fact a bug?
- Shouldn't the programming environment be robust wrt personal number format settings?
- And where or when did the delimiter comma change into a semicolon?

Let me add my data:
- Software version: 2.1.14433 (2020 01 21)
- Hardware version: D
- CAS version: 1.5.0
- Serial number: skip
- OS: V2.060.650
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
point, comma, semicolon confusion - StephanP - 02-29-2020 09:25 AM



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