HaloO,

I asked:
just re-reading S03 I saw that it defines the Rat to Int
conversion as truncation.

Hmm, does assuming floor semantics reveal the availability of
the tail function for Nums?

  (-1.25).tail == 0.75

Can it also be used as an lvalue?

  my Rat $x = -5/4; # note that this is (-5)/4 not -(5/4)
  $x.tail = 0;
  say $x;   # -2

The idea here is that the tail of a Num points towards -Inf
and ends at the next Int in that direction. So numbers are
snakes crawling rightwards ;)


Regards, TSa.
--

The Angel of Geometry and the Devil of Algebra fight for the soul
of any mathematical being.   -- Attributed to Hermann Weyl

Reply via email to