On 12/21/2011 12:52 AM, Revan NG wrote:
> some numbers have decimal places
> is there a way for me to remove the "."
The HP49/50 calculator series is capable of two fundamentally
different types of numeric computation, one involving
"floating point" results (also known as "approximate" or as "real")
where no more than 12 significant digits are ever retained,
while a separate "exponent" (power of 10) is used to enable
an extremely wide range of large and small magnitudes to be represented,
and the other involving integers of unlimited length and precision,
whose _exact_ value is always retained, no matter how many digits this requires.
To visually distinguish these two fundamentally different object types
from one another, floating point "approximate" values are _always_
displayed with a "radix point" character ("." or "," according to a system flag)
while _exact_ integer values are _never_ displayed with a radix point.
For example, if a value is displayed as 123456789012. (with trailing radix point)
it's entirely possible that this arose as a calculated value of 123456789012.3
but since the calculator always rounds calculated approximate results
to at most 12 significant digits, the closest-valued real number object
that can be delivered as a result is 123456789012. (rounded off),
and is displayed this way to show that it's a limited-precision value,
never assured to have more than 12 digits of precision.
Even a value of 123. or even a value of 1. could likewise
possibly have resulted solely because of the limited precision
of all such "floating point" results -- for example,
the result of calculating 10^(1E-12) appears as 1.
because the next significant digit of the true answer
would be the 13th digit, which has been rounded off.
On the other hand, a value displayed as 123456789012 (no radix point)
or a value displayed as 1 (no radix point)
or a value displayed as -12345678901234567890123 (no radix point)
can only represent an exact result, never a "rounded off" result.
If you want to replace any approximate value whose (approximate)
fractional part appears to be zero by an exact integer value,
that's what command R\->I does,
the new object then displaying without a radix point,
and there will likewise then be no radix point inserted by \->STR,
which is the same function as is internally used to display it on the screen.
[r->] [OFF]