These are chat archives for bluescarni/piranha

9th
Feb 2018
Andrew Corrigan
@andrewcorrigan
Feb 09 14:05
Does Piranha guarantee anything about the signs of rational numbers:
for example, if I have a positive rational number r, does that imply both r.den() and r.num() are positive?
if I have a negative rational number r, is there any guarantee that only r.num() is negative? or could den() be negative instead?
Francesco Biscani
@bluescarni
Feb 09 15:06
rationals are always represented in a canonical form: denominator is strictly positive, numerator and denominator are coprime. Only the numerator can be signed.
Andrew Corrigan
@andrewcorrigan
Feb 09 20:26
thanks!