summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/rpn/number.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/rpn/number.go b/internal/rpn/number.go
index 562ef77..47674d8 100644
--- a/internal/rpn/number.go
+++ b/internal/rpn/number.go
@@ -315,7 +315,7 @@ func (r *Rat) SetMetric(m *Metric) NumericValue {
// Compare returns -1, 0, or 1 if this rational is less than, equal to, or greater than another.
// For Rat-to-Rat comparison, uses direct big.Rat.Cmp() for exact precision.
-// For Rat-to-Float comparison, converts via float64 (acceptable precision loss).
+// For comparison with non-Rat types, converts via float64 (acceptable precision loss).
func (r *Rat) Compare(other NumericValue) (int, error) {
// Rat-to-Rat: direct comparison with full precision
if otherRat, ok := other.(*Rat); ok {