Re: [pure-lang-users] Proposed syntax changes
Status: Beta
Brought to you by:
agraef
From: Eddie R. <er...@bm...> - 2008-08-18 13:46:56
|
On Mon, 2008-08-18 at 08:43 -0500, Eddie Rucker wrote: > IMHO, the following rules should be added for pow: > > pow n::int (x%y) | > pow n::bigint (x%y) | > pow n::double (x%y) = pow n (x/y); > > So that > > pow 16 (1%2); > 4.0 > > instead of the current > > pow 16 (1%2); > pow 16 (1L%2L) > Forgot to mention the reason: > 15^(-1%2); 3.87298334620742 > pow 15 (1%2); pow 15 (1L%2L) should be consistent. e.r. |