Re: Strange problem
On Sat, 18 Mar 2000, Rett Williams wrote:
>
> Neither WIDTH nor HEIGHT are either integers or atoms, but floats because
> they are declared with a decimal. I am not sure what that means for their
> use as atoms in the function Get(), but it can't be nice. In this particular
> case,
> it doesn't matter, because (att-floor(att)) will always be 0 if att has
> already
> been rounded to an integer by being stuffed into an atom. I think that is
> your problem.
Bzzzt! An atom _is_ a float. Storing something there does not round it in any
way. This is easily proven by either
1. writing a program:
constant n = 4.1
atom a
a = n
? a
prints 4.1
Or, 2, consulting the manual:
"Atoms can have any integer or double-precision floating point value.
They can range from approximately -1e300 (minus one times 10 to the power 300)
to +1e300 with 15 decimal digits of accuracy."
Regards,
Irv
|
Not Categorized, Please Help
|
|