![]() |
HOME UEDIT UCALC UPAC USER-RPL PROGS |
![]() |
|
UCalc User-RPL Programmer Fraction Mark Handling
A real number contains a fraction mark. In the US, it is the period '.' that is commonly used. In other locales or cultures around the world the fraction mark is often the comma ','. The HP50g calculator has a system flag -51, which indicates that period is used as the fraction mark if clear (default), and that comma is used as the fraction mark if set. Although UCalc does not interpreted system flags, it can handle both the period and the comma as the fraction mark used in real numbers.
The following shows that the program variable 'test6' with real numbers using fraction marks of both period and comma, and the stack shows the correct results after evaluation of the program:
UCalc's stack can display real numbers with either period or comma. The default is period. To select the comma as the fraction mark when displaying real numbers in the stack, you can select the menu Tools | Preference and the 'Advance' tab, check the checkbox for "When display real numbers in stack, use comma as fraction mark...". The following shows the stack display when the comma is used as fraction mark:
© Copyright 2013 Stanley H.H. Lui