Re: Rat

2018-09-16 Thread ToddAndMargo
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

Re: Rat

2018-09-16 Thread ToddAndMargo
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

Re: Rat

2018-09-16 Thread Curt Tilmes
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

Re: Rat

2018-09-16 Thread Vadim Belman
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 написав(ла): >