develooper Front page | perl.perl6.users | Postings from June 2022

BigRoot precision question

Thread Next
ToddAndMargo via perl6-users
June 11, 2022 09:41
BigRoot precision question
Message ID:
Hi All,

In the following paper on Big Root:

 > use BigRoot;
 > BigRoot.precision = 7;
 > say (BigRoot.newton's-sqrt: 2;).base(10)
 > say (BigRoot.newton's-sqrt: 2;).base(16)

That is a base(10) precision.  In base(16) (Hex)
that is only 3 digits past the decimal.

Is there a way to tell BigRoot I want a certain
amount of Hex digits I want after the decimal?

Or just ask for double I want and prune afterwards?

Many thanks,

When you say, "I wrote a program that
crashed Windows," people just stare at
you blankly and say, "Hey, I got those
with the system, for free."
      -- Linus Torvalds

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About