Post Reply 
Equation Library
06-18-2015, 06:11 AM
Post: #8
RE: Equation Library
(06-17-2015 07:44 PM)Nepomuceno Wrote:  I've had success with the Library on my emulator , but the HP Prime could not.
Syntax error message on line 10. Does anyone know why ?

You may have an error if you have set the comma as the decimal separator on your HP Prime.
To fix this issue you need to add a pragma statement as the first line of the program:
Code:
#pragma mode( separator(.,;) integer(h32) )

This pragma says to the parser that no matter YOUR Home Settings, the program follow the syntax:
decimal separator is a point in the program.
parameter separator is a comma in the program.
command separator is a semi in the program.
and integers are 32 bits hexadecimal

You can find more details here.

A comment for people posting HP Prime programs: it is a good practice to start any program with a #pragma statement. It avoids troubles if you change your decimal separator later on or if you share your program with someone using different settings.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Equation Library - Eddie W. Shore - 04-02-2015, 02:20 AM
RE: Equation Library - salvomic - 04-02-2015, 01:37 PM
RE: Equation Library - John Colvin - 04-02-2015, 06:52 PM
RE: Equation Library - ebswift - 04-03-2015, 03:42 AM
RE: Equation Library - akmon - 04-05-2015, 10:40 PM
RE: Equation Library - akmon - 05-21-2015, 11:22 PM
RE: Equation Library - Nepomuceno - 06-17-2015, 07:44 PM
RE: Equation Library - Didier Lachieze - 06-18-2015 06:11 AM
RE: Equation Library - rgallier - 06-30-2015, 07:56 PM
RE: Equation Library - rgallier - 07-11-2015, 05:56 PM
RE: Equation Library - coitboy2000 - 05-12-2017, 10:33 AM
RE: Equation Library - Gamo - 05-13-2017, 08:51 AM
RE: Equation Library - compsystems - 05-13-2017, 03:47 PM
RE: Equation Library - Primer of the HP - 01-21-2024, 03:19 PM



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