[pure-lang-svn] SF.net SVN: pure-lang:[488] pure/trunk/lib/math.pure
Status: Beta
Brought to you by:
agraef
From: <ag...@us...> - 2008-08-14 06:56:14
|
Revision: 488 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=488&view=rev Author: agraef Date: 2008-08-14 06:56:25 +0000 (Thu, 14 Aug 2008) Log Message: ----------- Comment change. Modified Paths: -------------- pure/trunk/lib/math.pure Modified: pure/trunk/lib/math.pure =================================================================== --- pure/trunk/lib/math.pure 2008-08-14 06:39:38 UTC (rev 487) +++ pure/trunk/lib/math.pure 2008-08-14 06:56:25 UTC (rev 488) @@ -368,11 +368,11 @@ /* The '%' operator returns a rational or complex rational for any combination of integer, rational and complex integer/rational arguments, provided that the denominator is nonzero (otherwise it behaves like x div 0, which will - raise an exception on most systems). Machine int operands are always - promoted to bigints. For other numeric operands '%' works just like '/'. - Rational results are normalized so that the sign is always in the numerator - and numerator and denominator are relatively prime. Hence a rational zero - is always represented as 1L%0L. */ + raise an exception). Machine int operands are always promoted to bigints. + For other numeric operands '%' works just like '/'. Rational results are + normalized so that the sign is always in the numerator and numerator and + denominator are relatively prime. Hence a rational zero is always + represented as 0L%1L. */ x::bigint % 0L = x div 0L; x::bigint % y::bigint = (-x)%(-y) if y<0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |