User Tools

Site Tools


prime:misctips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
prime:misctips [2017/11/15 00:44]
webmasterpdx
prime:misctips [2017/12/03 19:00] (current)
webmasterpdx
Line 1: Line 1:
 ====== Miscellaneous Tips ====== ====== Miscellaneous Tips ======
  
-Integers are defined using the following formats. #19d is 19 decimal. #19Dh is 19D hex. #19:16d is 19 decimal 16 bits. #19D:16h is 19D hex 16 bits. Note the use of upper and lower case.+Integers are defined using the following formats. #19d is 19 decimal. #19Dh is 19D hex. #19:16d is 19 decimal 16 bits. #19D:16h is 19D hex 16 bits. #19:-16d is signed. Note the use of upper and lower case. More info [[https://​carlos-icg.blogspot.pe/​2017/​09/​entero-tipo-hp-prime.html|here]]. 
 + 
 +LOCAL A; inside a program file, but outside a function definition, is a global variable that only functions defined inside the same program file can access. Thus, LOCAL A; will not compile as long as the variable A exsits globally (e.g. System variable A is a predefined global). i.e. LOCAL A; outside a function does not do any variable overloading. 
 + 
 +Variable names can use all kinds of weird identifiers defined in unicode. To determine what identifiers (non-alphanumeric type characters),​ a little C function to do that is identified [[http://​www.hpmuseum.org/​forum/​thread-9495-post-83371.html#​pid83371|here]].
  
 Note that there is a shortcut to STRING(V) by just doing T:​=""​+V;​ However, STRING(V) is faster and uses less RAM. Note that there is a shortcut to STRING(V) by just doing T:​=""​+V;​ However, STRING(V) is faster and uses less RAM.
prime/misctips.1510735493.txt.gz · Last modified: 2017/11/15 00:44 by webmasterpdx