[gnome-calculator] Fix error message of incorrect input to factorial.



commit e6beb1fbbcf0e475f68ebf65acbc3e2de14e4208
Author: PioneerAxon <arth svnit gmail com>
Date:   Sun Dec 15 23:38:59 2013 +0530

    Fix error message of incorrect input to factorial.

 src/number.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/number.vala b/src/number.vala
index 28ebc5c..81d2811 100644
--- a/src/number.vala
+++ b/src/number.vala
@@ -1046,11 +1046,11 @@ public class Number
              /* Factorial Not defined for Complex or for negative numbers */
             if(is_negative () || is_complex ())
             {
-                /* Translators: Error displayed when attempted take the factorial of a fractional number */
-                mperr (_("Factorial is not computed for given input"));
+                /* Translators: Error displayed when attempted take the factorial of a negative or complex 
number */
+                mperr (_("Factorial is only defined for non-negative real numbers"));
                 return new Number.integer (0);
             }
-            
+
             var val = to_double ();
 
             /* Factorial(x) = Gamma(x+1) - This is the formula used to calculate Factorial.*/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]