On 9/16/18 7:37 PM, Curt Tilmes wrote:
Rat is a type (a 'class').
It is also a method on class Numeric. You can take anything Numeric,
and call .Rat() on it to get an equivalent Rat (well, within $epsilon)
You can't, for example, say
my Rat $x = pi;
Since pi is not rational -- it won't fit i
On 9/16/18 7:34 PM, Vadim Belman wrote:
You're messing up a type and a method to convert into that type. For example,
dd "1.2".Rat
will output you a rational whereas
dd "1.2"
will output a string.
Again, search for Rat on docs gives you a line just under the Class section.
I had to learn
Rat is a type (a 'class').
It is also a method on class Numeric. You can take anything Numeric, and
call .Rat() on it to get an equivalent Rat (well, within $epsilon)
You can't, for example, say
my Rat $x = pi;
Since pi is not rational -- it won't fit in that box.
You can, however, ask pi to tur
You're messing up a type and a method to convert into that type. For example,
dd "1.2".Rat
will output you a rational whereas
dd "1.2"
will output a string.
Again, search for Rat on docs gives you a line just under the Class section.
> 16 вер. 2018 р. о 22:29 ToddAndMargo написав(ла):
>