develooper Front page | perl.perl6.internals | Postings from September 2001

Re: Math functions? (Particularly transcendental ones)

Thread Previous | Thread Next
From:
Uri Guttman
Date:
September 10, 2001 11:05
Subject:
Re: Math functions? (Particularly transcendental ones)
Message ID:
200109101805.OAA06786@home.sysarch.com.
>>>>> "DW" == David Whipp <david_whipp@fast-chip.com> writes:

  DW> Dan Sugalski wrote:
  >> Okay, I'm whipping together the "fancy math" section of the 
  >> interpreter assembly language. I've got:
  DW> [...]
  >> Can anyone think of things I've forgotten? It's been a while 
  >> since I've done numeric work.

  DW> I'm not sure where this belongs, but I'd really like to have
  DW> a usage model for some of the edges of arithmetic. For example,
  DW> it should be possible to enable/disable overflow and underflow
  DW> exceptions. Basically, Perl5 should be IEE754 compliant; and it
  DW> should support the (optional) traps. It would also nice to have
  DW> a saturation-on-overflow mode/type.

we are planning automatic over/underflow to bigfloat. so there is no
need for traps. they could be provided at the time of the conversion to
big*.

  DW> If you have this type of stuff for floats; it'd be consistant to
  DW> have it for integers, too.

overflow to bigint is also planned.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Search or Offer Perl Jobs  --------------------------  http://jobs.perl.org

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About