Skip to content

Commit

Permalink
Merge pull request #1108 from dpvc/context-fractions
Browse files Browse the repository at this point in the history
Make Fraction contexts as extensions so you can add fractions to other compatible contexts.
  • Loading branch information
drgrice1 authored Dec 3, 2024
2 parents 14dc056 + c33616d commit 10c9a13
Show file tree
Hide file tree
Showing 4 changed files with 1,457 additions and 345 deletions.
2 changes: 1 addition & 1 deletion lib/Value.pm
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ sub isValue {
sub isNumber {
my $n = shift;
return $n->{tree}->isNumber if isFormula($n);
return classMatch($n, 'Real', 'Complex') || matchNumber($n);
return (isValue($n) && ($n->type eq 'Number' || classMatch($n, 'Real', 'Complex'))) || matchNumber($n);
}

sub isRealNumber {
Expand Down
Loading

0 comments on commit 10c9a13

Please sign in to comment.