Re: Version 2.1 alpha-test release now available!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Quality wrote:

> Just one idea...
>
> >
> >       the constant PI - 3.14159... was added to misc.e
> >
>
> How about making it a function where PI(x) would return a number with x
> positions of significance **after** the decimal, truncated -- not rounded
>  ie: PI(4) returns {3.1415} ].
>
> PI() alone would return the largest available value for this and all future
> versions of Euphoria.
>
> ?

 Odd you should mention that, I *just* wrote a function that does that....and
allows the choice between truncation and rounding Pi.... ie:  PI(4,0) is
3.1415, while PI(3,1) is 3.142

if anyone's interested, I'll post the source

Greg



--
Greg Phillips
i.shoot at rednecks.com
http://euphoria.server101.com
--

Useless fact of the day:

In most advertisments, including newspapers, the time displayed on a watch is
10:10.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu