Re: Dual Buf and Str question

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/11/22 02:28, ToddAndMargo via perl6-users wrote: On 6/9/22 22:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily  get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string

Re: BigRoot precision question

2022-06-11 Thread Bruce Gray
> On Jun 11, 2022, at 4:41 AM, ToddAndMargo via perl6-users > wrote: > > Hi All, > > In the following paper on Big Root: > > https://newbedev.com/how-can-i-set-the-level-of-precision-for-raku-s-sqrt > > > > use BigRoot; > > BigRoot.precision = 7; > > say (BigRoot.newton's-sqrt: 2;).base(1

Re: Easier way to load a buffer?

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/10/22 07:49, ToddAndMargo via perl6-users wrote: Hi All, I am looking for an easier way to load a buffer. I know about this way [4] > my Buf $b=Buf.new(0x2A, 0x54, 0xFF, 0x53); Buf:0x<2A 54 FF 53> I would like to do it on one big blast: my Buf $b=Buf.new(0x2A54FF53A5F1D36F1CEA7E61FC37A2

BigRoot precision question

2022-06-11 Thread ToddAndMargo via perl6-users
Hi All, In the following paper on Big Root: https://newbedev.com/how-can-i-set-the-level-of-precision-for-raku-s-sqrt > use BigRoot; > BigRoot.precision = 7; > say (BigRoot.newton's-sqrt: 2;).base(10) 1.4142136 > say (BigRoot.newton's-sqrt: 2;).base(16) 1.6A09E7 That is a base(10) precision.

Re: Dual Buf and Str question

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/9/22 22:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily  get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I can think o